Open Niks1010 opened 4 weeks ago
plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" id "com.android.application" version "7.3.0" apply false id "org.jetbrains.kotlin.android" version "1.9.0" apply false }
Open settings.gradle file under android directory and update the version to 1.9.0 of id "org.jetbrains.kotlin.android"
This worked for me.
I had same Issue But I solved this problem. It's only appears in the Android OS environment.
There are two solution.
Change to pub location -> geolocator It's easy
Fix Bug 2-1) pub spec add location: ^6.0.1 2-2) you will encounter below first fix Error.
2-3) change the minSdkversion in android/app/build.gradle
2-4) you will encounter below second fix Error.
2-5) you add buildscript code at android/build.gradle
2-4) you will same encounter second fix Error.
2-5) And Then you change kotlin.android version in android/settigns.gradle
And the It's run Success
Thanks @faithinker you saved me
Launching lib\main.dart on Redmi Note 9 Pro in debug mode... Running Gradle task 'assembleDebug'... e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors e: C:/Users/nikes/.gradle/caches/transforms-3/9508325ccc4e6492ee61ca313dfda75b/transformed/jetified-kotlin-stdlib-common-1.9.0.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.9.0, expected version is 1.7.1. e: C:/Users/nikes/.gradle/caches/transforms-3/b86f6dba32e57b69b34d362f18628bf7/transformed/jetified-play-services-location-21.2.0-api.jar!/META-INF/java.com.google.android.gms.libs.identity_identity.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.7.1. e: C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.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.9.0, expected version is 1.7.1. e: C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.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.9.0, expected version is 1.7.1. e: C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/META-INF/kotlin-stdlib.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.7.1. e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (48, 9): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (75, 15): Unresolved reference: apply e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (76, 17): Unresolved reference: lockscreenVisibility e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (78, 33): Overload resolution ambiguity: public open fun createNotificationChannel(p0: NotificationChannel): Unit defined in androidx.core.app.NotificationManagerCompat public open fun createNotificationChannel(p0: NotificationChannelCompat): Unit defined in androidx.core.app.NotificationManagerCompat e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (86, 54): Unresolved reference: let e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (87, 17): Unresolved reference: it e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (87, 26): Unresolved reference: it e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (89, 9): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (91, 14): Overload resolution ambiguity: public open fun setSmallIcon(p0: IconCompat): NotificationCompat.Builder defined in androidx.core.app.NotificationCompat.Builder public open fun setSmallIcon(p0: Int): NotificationCompat.Builder defined in androidx.core.app.NotificationCompat.Builder e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (95, 9): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (101, 9): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (109, 33): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (115, 13): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (118, 9): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (120, 14): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (124, 9): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (169, 15): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (172, 9): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (173, 9): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (193, 9): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (194, 9): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (196, 15): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (201, 23): Unresolved reference: let e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (203, 21): Unresolved reference: it e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (214, 9): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (215, 23): Unresolved reference: let e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (216, 32): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (217, 21): Unresolved reference: it e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (227, 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (229, 18): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (242, 13): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (244, 13): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (250, 9): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (251, 13): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (253, 14): Class 'kotlin.Suppress' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Suppress.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (254, 13): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (257, 9): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (261, 33): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (264, 13): Unresolved reference: mapOf e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (264, 31): Unresolved reference: to e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (264, 63): Unresolved reference: to e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (271, 14): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (272, 19): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (279, 13): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (281, 17): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (282, 25): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (283, 17): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (285, 17): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (286, 29): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (292, 29): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (294, 17): 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. The class is loaded from C:/Users/nikes/.gradle/caches/transforms-3/c3f0666cf8984b118654915928619821/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (302, 23): Unresolved reference: let e: C:\Users\nikes\AppData\Local\Pub\Cache\hosted\pub.dev\location-6.0.1\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (303, 69): Unresolved reference: it
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':location:compileDebugKotlin'.
Try:
Get more help at https://help.gradle.org
BUILD FAILED in 3s
┌─ Flutter Fix ──────────────────────────────────────────────────────────────────────────────┐ │ [!] Your project requires a newer version of the Kotlin Gradle plugin. │ │ Find the latest version on https://kotlinlang.org/docs/releases.html#release-details, then │ │ update E:\live_location_flutter\android\build.gradle: │ │ ext.kotlin_version = '' │
└────────────────────────────────────────────────────────────────────────────────────────────┘
Error: Gradle task assembleDebug failed with exit code 1