Avatar ·

خطأ "Module was compiled with an incompatible version of Kotlin": كيفية إصلاح عدم توافق الإصدار الثنائي؟

مرحباً بالجميع! أنا مبتدئ في تطوير Android وFlutter. أحاول إضافة وحدة الدفع Stripe إلى مشروعي، ولكن أثناء بناء 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.15 ``` أستخدم Flutter 3.0.0، وفي ملف `android/build.gradle` لدي: ```kotlin ext.kotlin_version = '1.3.50' dependencies { classpath 'com.android.tools.build:gradle:7.0.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } ``` في `pubspec.yaml` لدي Stripe SDK الإصدار `stripe_payment: ^1.10.0`. أفهم أن الخطأ مرتبط بعدم توافق Kotlin، لكنني لا أستطيع تحديد الإصدار الذي يجب استخدامه. جربت تغيير `kotlin_version` إلى 1.5.0 و1.6.0 و1.7.0 — لكن الخطأ لا يزال يظهر. أرجو المساعدة في كيفية مزامنة إصدارات Kotlin بشكل صحيح في مشروع Flutter مع Android؟ شكراً مقدماً! <<>>

سبب الخطأ و