flutter-geolocator icon indicating copy to clipboard operation
flutter-geolocator copied to clipboard

[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.

Open Amirdin99 opened this issue 1 year ago • 3 comments

Please check the following before submitting a new issue.

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. Screenshot 2024-09-12 at 17 07 57 Screenshot 2024-09-12 at 17 07 57

Version

13.0.1

Amirdin99 avatar Sep 12 '24 12:09 Amirdin99

hey @Amirdin99 did you resolve it ?

ashish007ratz avatar Sep 16 '24 06:09 ashish007ratz

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

Dakrain avatar Sep 23 '24 07:09 Dakrain

楼上的 这样就可以了 安卓的依赖改一下 geolocator: ^12.0.0 geolocator_android: 4.5.5 这个bug可以关闭了

wangbf11 avatar Sep 29 '24 02:09 wangbf11

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,

TimHoogstrate avatar Jan 21 '25 11:01 TimHoogstrate

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.

github-actions[bot] avatar Feb 04 '25 12:02 github-actions[bot]