-
Notifications
You must be signed in to change notification settings - Fork 112
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
Incompatible with new react-native #160
Comments
Im having a simmmilar issue |
I had a same issue regarding compileDebugKotlin version missmatch. I solved it by defining kotlin version in build.gradle like this - |
What about iOS? |
just found a workaround for iOS in this issue #170 (comment). For android the tricks for plugins: [
[
'expo-build-properties',
{
android: {
kotlinVersion: '1.6.10',
},
},
],
] |
I have errors running project after I have added this module
Task :react-native-receive-sharing-intent:compileDebugKotlin FAILED
e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
e: C:/Users/Przemek/.gradle/caches/transforms-3/2cfe106a332c6a6f2245988cf5920bcb/transformed/jetified-kotlin-stdlib-common-1.6.10.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.6.0, expected version is 1.1.15.
e: C:/Users/Przemek/.gradle/caches/transforms-3/8fa201288e2c6500b9e1af2f8ed9c77c/transformed/jetified-kotlin-stdlib-jdk7-1.6.10.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.6.0, expected version is 1.1.15.
e: C:/Users/Przemek/.gradle/caches/transforms-3/b6d16718b0badf943a01bd505b26edc1/transformed/jetified-kotlin-stdlib-jdk8-1.6.10.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.6.0, expected version is 1.1.15.
e: C:/Users/Przemek/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
e: C:/Users/Przemek/.gradle/caches/transforms-3/ef154a7ff5c9e83f423d62f01250b0da/transformed/jetified-react-native-0.70.5-debug-api.jar!/META-INF/ReactAndroid_debug.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
e: C:\Users\Przemek\GitRepository\memorizer-react-native\memorizer\node_modules\react-native-receive-sharing-intent\android\src\main\java\com\reactnativereceivesharingintent\FileDirectory.kt: (32, 5): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected
version is 1.1.15.
The class is loaded from C:/Users/Przemek/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: C:\Users\Przemek\GitRepository\memorizer-react-native\memorizer\node_modules\react-native-receive-sharing-intent\android\src\main\java\com\reactnativereceivesharingintent\FileDirectory.kt: (34, 7): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected
version is 1.1.15.
The class is loaded from C:/Users/Przemek/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: C:\Users\Przemek\GitRepository\memorizer-react-native\memorizer\node_modules\react-native-receive-sharing-intent\android\src\main\java\com\reactnativereceivesharingintent\FileDirectory.kt: (36, 27): Unresolved reference: split
e: C:\Users\Przemek\GitRepository\memorizer-react-native\memorizer\node_modules\react-native-receive-sharing-intent\android\src\main\java\com\reactnativereceivesharingintent\FileDirectory.kt: (36, 37): Unresolved reference: toRegex
e: C:\Users\Przemek\GitRepository\memorizer-react-native\memorizer\node_modules\react-native-receive-sharing-intent\android\src\main\java\com\reactnativereceivesharingintent\FileDirectory.kt: (36, 64): Unresolved reference: it
e: C:\Users\Przemek\GitRepository\memorizer-react-native\memorizer\node_modules\react-native-receive-sharing-intent\android\src\main\java\com\reactnativereceivesharingintent\FileDirectory.kt: (39, 43): Cannot find a parameter with this name: ignoreCase
e: C:\Users\Przemek\GitRepository\memorizer-react-native\memorizer\node_modules\react-native-receive-sharing-intent\android\src\main\java\com\reactnativereceivesharingintent\FileDirectory.kt: (44, 14): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from C:/Users/Przemek/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: C:\Users\Przemek\GitRepository\memorizer-react-native\memorizer\node_modules\react-native-receive-sharing-intent\android\src\main\java\com\reactnativereceivesharingintent\FileDirectory.kt: (56, 27): Unresolved reference: split
e: C:\Users\Przemek\GitRepository\memorizer-react-native\memorizer\node_modules\react-native-receive-sharing-intent\android\src\main\java\com\reactnativereceivesharingintent\FileDirectory.kt: (56, 37): Unresolved reference: toRegex
e: C:\Users\Przemek\GitRepository\memorizer-react-native\memorizer\node_modules\react-native-receive-sharing-intent\android\src\main\java\com\reactnativereceivesharingintent\FileDirectory.kt: (56, 64): Unresolved reference: it
e: C:\Users\Przemek\GitRepository\memorizer-react-native\memorizer\node_modules\react-native-receive-sharing-intent\android\src\main\java\com\reactnativereceivesharingintent\FileDirectory.kt: (60, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected
version is 1.1.15.
The class is loaded from C:/Users/Przemek/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: C:\Users\Przemek\GitRepository\memorizer-react-native\memorizer\node_modules\react-native-receive-sharing-intent\android\src\main\java\com\reactnativereceivesharingintent\FileDirectory.kt: (73, 45): Cannot find a parameter with this name: ignoreCase
e: C:\Users\Przemek\GitRepository\memorizer-react-native\memorizer\node_modules\react-native-receive-sharing-intent\android\src\main\java\com\reactnativereceivesharingintent\FileDirectory.kt: (107, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from C:/Users/Przemek/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: C:\Users\Przemek\GitRepository\memorizer-react-native\memorizer\node_modules\react-native-receive-sharing-intent\android\src\main\java\com\reactnativereceivesharingintent\FileDirectory.kt: (112, 22): Unresolved reference: with
e: C:\Users\Przemek\GitRepository\memorizer-react-native\memorizer\node_modules\react-native-receive-sharing-intent\android\src\main\java\com\reactnativereceivesharingintent\FileDirectory.kt: (114, 13): Unresolved reference: startsWith
e: C:\Users\Przemek\GitRepository\memorizer-react-native\memorizer\node_modules\react-native-receive-sharing-intent\android\src\main\java\com\reactnativereceivesharingintent\FileDirectory.kt: (115, 13): Unresolved reference: startsWith
e: C:\Users\Przemek\GitRepository\memorizer-react-native\memorizer\node_modules\react-native-receive-sharing-intent\android\src\main\java\com\reactnativereceivesharingintent\FileDirectory.kt: (123, 53): Unresolved reference: use
e: C:\Users\Przemek\GitRepository\memorizer-react-native\memorizer\node_modules\react-native-receive-sharing-intent\android\src\main\java\com\reactnativereceivesharingintent\FileDirectory.kt: (123, 59): Cannot infer a type for this parameter. Please specify it explicitly.
e: C:\Users\Przemek\GitRepository\memorizer-react-native\memorizer\node_modules\react-native-receive-sharing-intent\android\src\main\java\com\reactnativereceivesharingintent\FileDirectory.kt: (124, 38): Unresolved reference: use
e: C:\Users\Przemek\GitRepository\memorizer-react-native\memorizer\node_modules\react-native-receive-sharing-intent\android\src\main\java\com\reactnativereceivesharingintent\FileDirectory.kt: (124, 44): Cannot infer a type for this parameter. Please specify it explicitly.
e: C:\Users\Przemek\GitRepository\memorizer-react-native\memorizer\node_modules\react-native-receive-sharing-intent\android\src\main\java\com\reactnativereceivesharingintent\FileDirectory.kt: (142, 15): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
The class is loaded from C:/Users/Przemek/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: C:\Users\Przemek\GitRepository\memorizer-react-native\memorizer\node_modules\react-native-receive-sharing-intent\android\src\main\java\com\reactnativereceivesharingintent\ReceiveSharingIntentPackage.kt: (11, 16): Unresolved reference: listOf
e: C:\Users\Przemek\GitRepository\memorizer-react-native\memorizer\node_modules\react-native-receive-sharing-intent\android\src\main\java\com\reactnativereceivesharingintent\ReceiveSharingIntentPackage.kt: (15, 16): Unresolved reference: emptyList
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
Execution failed for task ':react-native-receive-sharing-intent:compileDebugKotlin'.
The text was updated successfully, but these errors were encountered: