Skip to content
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

Not able to compile app with flutter_sms dependency with M1 MacBook Pro 2021 Model. #66

Open
ghost opened this issue Jun 15, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 15, 2022

I am trying to compile app locally on AVD but getting error.

[  +37 ms] > Task :flutter_sms:compileDebugKotlin FAILED
[        ] Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
[        ] Use '--warning-mode all' to show the individual deprecation warnings.
[        ] See https://docs.gradle.org/7.0.2/userguide/command_line_interface.html#sec:command_line_warnings
[        ] 141 actionable tasks: 4 executed, 137 up-to-date
[        ] e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
[   +1 ms] e: /Users/cbindia/.gradle/caches/transforms-3/001530a160ce2f16cfc09b0518cd08db/transformed/jetified-kotlin-stdlib-jdk7-1.5.30.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.5.1, expected version is 1.1.15.
[        ] e: /Users/cbindia/.gradle/caches/transforms-3/4f734de614219efa437b45097d51db30/transformed/jetified-window-1.0.0-beta04-api.jar!/META-INF/window_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] e: /Users/cbindia/.gradle/caches/transforms-3/7c489bc67029764e7094b740450d625f/transformed/jetified-kotlinx-coroutines-core-jvm-1.5.2.jar!/META-INF/kotlinx-coroutines-core.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] e: /Users/cbindia/.gradle/caches/transforms-3/86258c1865fbbef41c634e6cbaa371e5/transformed/jetified-kotlin-stdlib-jdk8-1.5.30.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.5.1, expected version is 1.1.15.
[        ] e: /Users/cbindia/.gradle/caches/transforms-3/8b97b97961ff2113bf96b48fdd9e92cb/transformed/jetified-kotlin-stdlib-common-1.5.31.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.5.1, expected version is 1.1.15.
[        ] e: /Users/cbindia/.gradle/caches/transforms-3/c0505dfc597cfd4a8cb23d60e4f2e66a/transformed/jetified-window-java-1.0.0-beta04-api.jar!/META-INF/window-java_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] e: /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] e: /Users/cbindia/.gradle/caches/transforms-3/eb6c941766b95662cf72a7ebad35d349/transformed/jetified-kotlinx-coroutines-android-1.5.2.jar!/META-INF/kotlinx-coroutines-android.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (30, 5): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] The class is loaded from /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (34, 5): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] The class is loaded from /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (38, 5): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] The class is loaded from /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (42, 5): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] The class is loaded from /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (46, 5): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] The class is loaded from /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (50, 5): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] The class is loaded from /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (54, 5): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] The class is loaded from /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (55, 14): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] The class is loaded from /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (59, 14): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] The class is loaded from /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (65, 6): Class 'kotlin.jvm.JvmStatic' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] The class is loaded from /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/jvm/JvmStatic.class
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (68, 12): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] The class is loaded from /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (69, 12): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] The class is loaded from /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (74, 5): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] The class is loaded from /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (77, 20): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] The class is loaded from /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (86, 11): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] The class is loaded from /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (88, 32): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] The class is loaded from /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (89, 24): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] The class is loaded from /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (98, 12): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] The class is loaded from /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (104, 5): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] The class is loaded from /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (105, 7): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] The class is loaded from /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (108, 7): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] The class is loaded from /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (116, 26): Unresolved reference: split
[   +1 ms] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (119, 56): Unresolved reference: toByteArray
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (120, 7): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] The class is loaded from /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (120, 19): Unresolved reference: toByteArray
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (122, 21): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] The class is loaded from /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (124, 21): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] The class is loaded from /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (128, 12): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] The class is loaded from /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (133, 12): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] The class is loaded from /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (136, 15): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] The class is loaded from /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
[        ] e: /Users/cbindia/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (137, 12): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
[        ] The class is loaded from /Users/cbindia/.gradle/caches/transforms-3/c7f74e2ea19c50a422b114f964c3ce1e/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
[        ] FAILURE: Build failed with an exception.
[        ] * What went wrong:
[        ] Execution failed for task ':flutter_sms:compileDebugKotlin'.
[        ] > 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 1s
@ghost
Copy link
Author

ghost commented Jun 15, 2022

Need to upgrade KOTLIN version from 1.3.x to 1.6.x and check about issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants