fluttercommunity / flutter_sms

A Flutter plugin to Send SMS and MMS on iOS and Android. If iMessage is enabled it will send as iMessage on iOS. This plugin must be tested on a real device on iOS. Maintainer: @rodydavis
https://fluttercommunity.github.io/flutter_sms/
MIT License
248 stars 201 forks source link

Project fails to when a flutter module depends on it #70

Open prasadsunny1 opened 2 years ago

prasadsunny1 commented 2 years ago

To reproduce:


e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
e: /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/095f7a2bff526ae90c824eb73c15302a/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/sanniprasad/.gradle/caches/transforms-2/files-2.1/325857b14eafda42f6ebd6ed8a130644/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/sanniprasad/.gradle/caches/transforms-2/files-2.1/35a54be3f0ff5b406b46c3399384ac55/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/sanniprasad/.gradle/caches/transforms-2/files-2.1/7deeafea6d161ff761d4ca76f8dcca61/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/sanniprasad/.gradle/caches/transforms-2/files-2.1/ae7d3805d00abe8151ad445b4c4e1688/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/sanniprasad/.gradle/caches/transforms-2/files-2.1/b7eb4c7d400c07c4717df481e3ba4ffd/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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d54167437c933767a9a5f422140c1c39/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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/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/sanniprasad/.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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: /Users/sanniprasad/.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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: /Users/sanniprasad/.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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: /Users/sanniprasad/.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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: /Users/sanniprasad/.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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: /Users/sanniprasad/.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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: /Users/sanniprasad/.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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: /Users/sanniprasad/.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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: /Users/sanniprasad/.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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: /Users/sanniprasad/.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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/jvm/JvmStatic.class
e: /Users/sanniprasad/.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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: /Users/sanniprasad/.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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: /Users/sanniprasad/.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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: /Users/sanniprasad/.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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: /Users/sanniprasad/.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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: /Users/sanniprasad/.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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: /Users/sanniprasad/.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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: /Users/sanniprasad/.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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: /Users/sanniprasad/.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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: /Users/sanniprasad/.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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: /Users/sanniprasad/.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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: /Users/sanniprasad/.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
e: /Users/sanniprasad/.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/sanniprasad/.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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: /Users/sanniprasad/.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/sanniprasad/.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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: /Users/sanniprasad/.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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: /Users/sanniprasad/.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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: /Users/sanniprasad/.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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: /Users/sanniprasad/.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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
e: /Users/sanniprasad/.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/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

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 21s```

Flutter doctor output

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.0.5, on macOS 12.4 21F79 darwin-arm, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc2)
[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] IntelliJ IDEA Community Edition (version 2022.1.4)
[✓] VS Code (version 1.69.2)
[✓] Connected device (2 available)
[✓] HTTP Host Availability

• No issues found!