Avatar ·

خطأ Kotlin: "Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15"

مرحباً بالجميع! أنا مبتدئ في تطوير Android، أستخدم Kotlin و Flutter. بعد تحديث Gradle وإضافة مكتبة Stripe إلى المشروع (المدفوعات)، واجهت خطأ أثناء البناء: ``` Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15 ``` أعمل على تطبيق لمتجر إلكتروني. إليك ملف `build.gradle` (على مستوى المشروع): ```kotlin buildscript { ext.kotlin_version = '1.3.72' repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:4.1.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } ``` وفي ملف `build.gradle` للوحدة app، لدي هذه التبعيات: ```kotlin dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation 'com.stripe:stripe-android:16.0.0' implementation 'androidx.core:core-ktx:1.6.0' } ```