-
-
Notifications
You must be signed in to change notification settings - Fork 808
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
Kotlin version 1.8.0 and Flutter version 1.19.0 #929
Comments
@myfilesvivek did you fixed? |
i tried to update the kotlin version of my project i still get |
Same issue, Kotlin is at latest version |
That solution worked for me : id "org.jetbrains.kotlin.android" version "1.9.22" apply false in file : project/android/settings.gradle. The latest koltin version can be find here : https://kotlinlang.org/docs/releases.html#release-details |
It works! Thanks a lot. |
It works! Thanks a lot. 👍 |
Thanks ! |
Thanks a lot |
It works. Thanks a lot |
please follow this guide: https://docs.flutter.dev/release/breaking-changes/flutter-gradle-plugin-apply looks like it's not a problem with this package |
e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
e: /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/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: /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/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: /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/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: /Users/vivekkumar/.gradle/caches/transforms-3/87160e10799c4613466ae46fc7c18ec5/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: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/android/src/main/java/com/lyokone/location/FlutterLocationService.kt: (75, 15): Unresolved reference: apply
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/android/src/main/java/com/lyokone/location/FlutterLocationService.kt: (76, 17): Unresolved reference: lockscreenVisibility
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/android/src/main/java/com/lyokone/location/FlutterLocationService.kt: (86, 54): Unresolved reference: let
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/android/src/main/java/com/lyokone/location/FlutterLocationService.kt: (87, 17): Unresolved reference: it
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/android/src/main/java/com/lyokone/location/FlutterLocationService.kt: (87, 26): Unresolved reference: it
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/android/src/main/java/com/lyokone/location/FlutterLocationService.kt: (201, 23): Unresolved reference: let
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/android/src/main/java/com/lyokone/location/FlutterLocationService.kt: (203, 21): Unresolved reference: it
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/android/src/main/java/com/lyokone/location/FlutterLocationService.kt: (215, 23): Unresolved reference: let
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/android/src/main/java/com/lyokone/location/FlutterLocationService.kt: (217, 21): Unresolved reference: it
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Suppress.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/android/src/main/java/com/lyokone/location/FlutterLocationService.kt: (264, 13): Unresolved reference: mapOf
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/android/src/main/java/com/lyokone/location/FlutterLocationService.kt: (264, 31): Unresolved reference: to
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/android/src/main/java/com/lyokone/location/FlutterLocationService.kt: (264, 63): Unresolved reference: to
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/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 /Users/vivekkumar/.gradle/caches/transforms-3/41fcb9aa61ab7346539123027ab1de6b/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/android/src/main/java/com/lyokone/location/FlutterLocationService.kt: (302, 23): Unresolved reference: let
e: /Users/vivekkumar/.pub-cache/hosted/pub.dev/location-5.0.3/android/src/main/java/com/lyokone/location/FlutterLocationService.kt: (303, 69): Unresolved reference: it
FAILURE: Build failed with an exception.
Execution failed for task ':location:compileDebugKotlin'.
BUILD FAILED in 1m 6s
┌─ 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 /Users/vivekkumar/StudioProjects/xhap/android/build.gradle: │
│ ext.kotlin_version = '' │
└────────────────────────────────────────────────────────────────────────────────────────────┘
Error: Gradle task assembleDebug failed with exit code 1
The text was updated successfully, but these errors were encountered: