Avatar ·

خطأ "Module was compiled with an incompatible version of Kotlin" في Android Studio: كيفية الإصلاح؟

مرحبًا أيها الزملاء! أنا مطور Android مبتدئ، وقد واجهت مشكلة تزعجني منذ يومين. أستخدم Android Studio وأكتب بلغة Kotlin. بالأمس قررت تحديث بعض التبعيات في المشروع، وأضفت أيضًا مكتبة جديدة للعمل مع coroutines (kotlinx-coroutines-android). بعد مزامنة Gradle، توقف المشروع عن التجميع، وأتلقى الخطأ التالي: "Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.16" إليك ملف build.gradle الخاص بي (على مستوى الوحدة app): ```kotlin plugins { id 'com.android.application' id 'org.jetbrains.kotlin.android' version '1.5.10' } android { compileSdk 31 defaultConfig { applicationId "com.example.myapp" minSdk 21 targetSdk 31 } } dependencies { implementation 'androidx.core:core-ktx:1.7.0' implementation 'androidx.appcompat:appcompat:1.4.0' implementation