[Question]:I don't use geolocator package with yandex_mapkit package ,error-->>/Users/user/AndroidStudioProjects/clean_area/android/app/src/main/kotlin/com/example/clean_area/MainApplication.kt: (17, 23): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
Please check the following before submitting a new issue.
- [X] I have searched the existing issues.
- [X] I have carefully read the documentation.
Please select for which platform(s) you need help
- [X] Android
- [X] iOS
- [ ] Linux
- [ ] macOS
- [ ] Web
- [ ] Windows
Your question
/Users/user/AndroidStudioProjects/clean_area/android/app/src/main/kotlin/com/example/clean_area/MainApplication.kt: (17, 23): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
Version
13.0.1
hey @Amirdin99 did you resolve it ?
same issue happened to me. I manged to fix it by change settings.gradle in android folder from: id "org.jetbrains.kotlin.android" version "1.7.10" apply false -> id "org.jetbrains.kotlin.android" version "1.9.0" apply false
楼上的 这样就可以了 安卓的依赖改一下 geolocator: ^12.0.0 geolocator_android: 4.5.5 这个bug可以关闭了
Dear @Amirdin99,
Can you elaborate a bit on the subject. Can you please add the output of flutter doctor -v to the issue?
Kind regards,
Without additional information, we are unfortunately not able to resolve this issue. Therefore, we reluctantly closed this issue for now. If you run into this issue later, feel free to file a new issue with a reference to this issue. Add a description of detailed steps to reproduce, expected and current behaviour, logs and the output of 'flutter doctor -v'. Thanks for your contribution.