Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compiling in Flutter 2.10.x #13

Closed
Harishwarrior opened this issue Mar 2, 2022 · 2 comments
Closed

Not compiling in Flutter 2.10.x #13

Harishwarrior opened this issue Mar 2, 2022 · 2 comments

Comments

@Harishwarrior
Copy link
Contributor

Project crashes after upgrading to newer Flutter version 2.10.x

e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
e: C:/Users/haris/.gradle/caches/transforms-3/17abc7e5a6261eb801a88d24287dde03/transformed/jetified-kotlinx-coroutines-core-jvm-1.5.2.jar!/META-INF/kotlinx-coroutines-core.kotlin_module: 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.
e: C:/Users/haris/.gradle/caches/transforms-3/2acf002dee0dbb185eb1efd8f2f62b17/transformed/jetified-kotlin-stdlib-jdk7-1.5.30.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: 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.
e: C:/Users/haris/.gradle/caches/transforms-3/31053fd189ee3ad9fb7dec10ce042723/transformed/jetified-window-java-1.0.0-beta04-api.jar!/META-INF/window-java_release.kotlin_module: 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.
e: C:/Users/haris/.gradle/caches/transforms-3/5713b5cc31a51311acb62ac7cdc05e57/transformed/jetified-kotlinx-coroutines-android-1.5.2.jar!/META-INF/kotlinx-coroutines-android.kotlin_module: 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.
e: C:/Users/haris/.gradle/caches/transforms-3/6079f933877ff457f6c594a365bc8ca4/transformed/jetified-window-1.0.0-beta04-api.jar!/META-INF/window_release.kotlin_module: 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.
e: C:/Users/haris/.gradle/caches/transforms-3/76d655b64600122b2efb37b3d7f27c2c/transformed/jetified-kotlin-stdlib-common-1.5.31.jar!/META-INF/kotlin-stdlib-common.kotlin_module: 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.
e: C:/Users/haris/.gradle/caches/transforms-3/97d78bca67a25d7a5023b2a16b4e6e78/transformed/jetified-kotlin-stdlib-jdk8-1.5.30.jar!/META-INF/kotlin-stdlib-jdk8.kotlin_module: 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.
e: C:/Users/haris/.gradle/caches/transforms-3/d9f386d8159dad0812e9f15bc5ca87b1/transformed/jetified-kotlin-stdlib-1.5.31.jar!/META-INF/kotlin-stdlib.kotlin_module: 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.
e: C:\Users\haris\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_map_arcgis-2.0.0\android\src\main\kotlin\mn\khankhulgun\flutter_map_arcgis\FlutterMapArcgisPlugin.kt: (15, 13): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
The class is loaded from C:/Users/haris/.gradle/caches/transforms-3/d9f386d8159dad0812e9f15bc5ca87b1/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: C:\Users\haris\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_map_arcgis-2.0.0\android\src\main\kotlin\mn\khankhulgun\flutter_map_arcgis\FlutterMapArcgisPlugin.kt: (28, 6): Class 'kotlin.jvm.JvmStatic' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
The class is loaded from C:/Users/haris/.gradle/caches/transforms-3/d9f386d8159dad0812e9f15bc5ca87b1/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/jvm/JvmStatic.class
e: C:\Users\haris\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_map_arcgis-2.0.0\android\src\main\kotlin\mn\khankhulgun\flutter_map_arcgis\FlutterMapArcgisPlugin.kt: (31, 15): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
The class is loaded from C:/Users/haris/.gradle/caches/transforms-3/d9f386d8159dad0812e9f15bc5ca87b1/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: C:\Users\haris\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_map_arcgis-2.0.0\android\src\main\kotlin\mn\khankhulgun\flutter_map_arcgis\FlutterMapArcgisPlugin.kt: (36, 5): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
The class is loaded from C:/Users/haris/.gradle/caches/transforms-3/d9f386d8159dad0812e9f15bc5ca87b1/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: C:\Users\haris\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_map_arcgis-2.0.0\android\src\main\kotlin\mn\khankhulgun\flutter_map_arcgis\FlutterMapArcgisPlugin.kt: (37, 14): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
The class is loaded from C:/Users/haris/.gradle/caches/transforms-3/d9f386d8159dad0812e9f15bc5ca87b1/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: C:\Users\haris\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_map_arcgis-2.0.0\android\src\main\kotlin\mn\khankhulgun\flutter_map_arcgis\FlutterMapArcgisPlugin.kt: (39, 14): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
The class is loaded from C:/Users/haris/.gradle/caches/transforms-3/d9f386d8159dad0812e9f15bc5ca87b1/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':flutter_map_arcgis:compileDebugKotlin'.
> Compilation error. See log for more details

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 3s
@Harishwarrior
Copy link
Contributor Author

The solution is to change Kotlin version to 1.6.10 in android/build.gradle

@munkh-altai
Copy link
Collaborator

Version 2.0.1 test with 3.0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants