Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.6.0.
mtiendat opened this issue · 1 comments
I got this issue after flutter flutter run --release
e: app/build/app_settings/.transforms/b9cdd701dc506105a04cb8f8bd541e9b/transformed/out/jars/classes.jar!/META-INF/app_settings_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.6.0.
kotlin verison: 1.9.0
[✓] Flutter (Channel stable, 3.16.7, on macOS 14.2.1 23C71 darwin-arm64, locale en-VN)
• Flutter version 3.16.7 on channel stable at /opt/homebrew/Caskroom/flutter/3.3.8/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ef1af02aea (10 weeks ago), 2024-01-11 15:19:26 -0600
• Engine revision 4a585b7929
• Dart version 3.2.4
• DevTools version 2.28.5
Duplicate class kotlin.collections.jdk8.CollectionsJDK8Kt found in modules kotlin-stdlib-1.8.0.jar -> jetified-kotlin-stdlib-1.8.0 (org.jetbrains.kotlin:kotlin-stdlib:1.8.0) and kotlin-stdlib-jdk8-1.5.30.jar -> jetified-kotlin-stdlib-jdk8-1.5.30 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30)
Please update your package. kotlin: 1.9.0