Kotlin version 1.8.0 and Flutter version 1.19.0
myfilesvivek opened this issue · comments
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.
- What went wrong:
Execution failed for task ':location:compileDebugKotlin'.
A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
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 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
some logs
@myfilesvivek did you fixed?
need to upgrade the kotlin version of your project to the latest
@myfilesvivek did you fixed? need to upgrade the kotlin version of your project to the latest
i tried to update the kotlin version of my project i still get
e: Daemon compilation failed: Could not connect to Kotlin compile daemon
java.lang.RuntimeException: Could not connect to Kotlin compile daemon
at org.jetbrains.kotlin.compilerRunner.GradleKotlinCompilerWork.compileWithDaemon(GradleKotlinCompilerWork.kt:218)
at org.jetbrains.kotlin.compilerRunner.GradleKotlinCompilerWork.compileWithDaemonOrFallbackImpl(GradleKotlinCompilerWork.kt:175)
at org.jetbrains.kotlin.compilerRunner.GradleKotlinCompilerWork.run(GradleKotlinCompilerWork.kt:135)
at org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction.execute(GradleCompilerRunnerWithWorkers.kt:73)
at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:63)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.create(NoIsolationWorkerFactory.java:66)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.create(NoIsolationWorkerFactory.java:62)
at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:100)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1.lambda$execute$0(NoIsolationWorkerFactory.java:62)
at org.gradle.workers.internal.AbstractWorker$1.call(AbstractWorker.java:44)
at org.gradle.workers.internal.AbstractWorker$1.call(AbstractWorker.java:41)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
at org.gradle.workers.internal.AbstractWorker.executeWrappedInBuildOperation(AbstractWorker.java:41)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1.execute(NoIsolationWorkerFactory.java:59)
at org.gradle.workers.internal.DefaultWorkerExecutor.lambda$submitWork$2(DefaultWorkerExecutor.java:212)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runExecution(DefaultConditionalExecutionQueue.java:187)
at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.access$700(DefaultConditionalExecutionQueue.java:120)
at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner$1.run(DefaultConditionalExecutionQueue.java:162)
at org.gradle.internal.Factories$1.create(Factories.java:31)
at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:249)
at org.gradle.internal.work.DefaultWorkerLeaseService.runAsWorkerThread(DefaultWorkerLeaseService.java:109)
at org.gradle.internal.work.DefaultWorkerLeaseService.runAsWorkerThread(DefaultWorkerLeaseService.java:114)
at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runBatch(DefaultConditionalExecutionQueue.java:157)
at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.run(DefaultConditionalExecutionQueue.java:126)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:49)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
e: E:/projects/flutter/amred1/build/location/.transforms/96627b4e85ddf61031312066d09c708e/transformed/out/jars/classes.jar!/META-INF/location_release.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.6.0.
e: C:/Users/OLIVER/.gradle/caches/transforms-3/01a3af48c734beda3feecbd3a00e6589/transformed/jetified-activity-1.7.2/jars/classes.jar!/META-INF/activity_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/OLIVER/.gradle/caches/transforms-3/f6f4085954c689e061454e5ec5d1098f/transformed/lifecycle-livedata-core-2.6.1/jars/classes.jar!/META-INF/lifecycle-livedata-core_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/OLIVER/.gradle/caches/transforms-3/3fc3b6fc8fb01bca724c72404ceaf0d2/transformed/lifecycle-livedata-2.6.1/jars/classes.jar!/META-INF/lifecycle-livedata_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/OLIVER/.gradle/caches/transforms-3/69f4ae7300ddf8bf51cc117ac8567f99/transformed/lifecycle-viewmodel-2.6.1/jars/classes.jar!/META-INF/lifecycle-viewmodel_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/OLIVER/.gradle/caches/transforms-3/2437b25a94819ecb3c6f59588a04d576/transformed/jetified-lifecycle-viewmodel-savedstate-2.6.1/jars/classes.jar!/META-INF/lifecycle-viewmodel-savedstate_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/OLIVER/.gradle/caches/transforms-3/265dd1c7c700c56d28bfa469c009f54d/transformed/jetified-core-ktx-1.10.1/jars/classes.jar!/META-INF/core-ktx_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/OLIVER/.gradle/caches/transforms-3/f5d93cde6b955dd6a62af6422e7dbcde/transformed/core-1.10.1/jars/classes.jar!/META-INF/core_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/OLIVER/.gradle/caches/transforms-3/df1ea7f13d08fa7a5e0eb421bdcba36d/transformed/lifecycle-runtime-2.6.1/jars/classes.jar!/META-INF/lifecycle-runtime_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/OLIVER/.gradle/caches/modules-2/files-2.1/androidx.lifecycle/lifecycle-common/2.6.1/10f354fdb64868baecd67128560c5a0d6312c495/lifecycle-common-2.6.1.jar!/META-INF/lifecycle-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/OLIVER/.gradle/caches/transforms-3/fd506c84984fa8dbf5ed1d8c0ef06c5e/transformed/jetified-savedstate-1.2.1/jars/classes.jar!/META-INF/savedstate_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/OLIVER/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.9.22/d6c44cd08d8f3f9bece8101216dbe6553365c6e3/kotlin-stdlib-1.9.22.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.6.0.
e: C:/Users/OLIVER/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.9.22/d6c44cd08d8f3f9bece8101216dbe6553365c6e3/kotlin-stdlib-1.9.22.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.6.0.
e: C:/Users/OLIVER/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.9.22/d6c44cd08d8f3f9bece8101216dbe6553365c6e3/kotlin-stdlib-1.9.22.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.6.0.
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
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.
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. 👍
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
Thanks !
Thanks a lot
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
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