Error "Module was compiled with an incompatible version of Kotlin": how to fix binary version incompatibility?
Hello everyone! I'm a beginner in Android and Flutter development. I'm trying to add the Stripe payment module to my project, but during Gradle build I get the following error:\n\n```\nModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15\n```\n\nI'm using Flutter 3.0.0, and in my `android/build.gradle` file I have:\n\n```kotlin\next.kotlin_version = '1.3.50'\ndependencies {\n classpath 'com.android.tools.build:gradle:7.0.0'\n classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"\n}\n```\n\nIn my `pubspec.yaml` I have Stripe SDK version `stripe_payment: ^1.10.0`. I understand that the error is related to Kotlin incompatibility, but I can't figure out which exact version I need to set. I tried changing `kotlin_version` to 1.5
No answers yet.
Log in to leave an answer