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

Incompitable Kotlin version #279

Open
M-Rebbi opened this issue Oct 12, 2022 · 1 comment · May be fixed by #280
Open

Incompitable Kotlin version #279

M-Rebbi opened this issue Oct 12, 2022 · 1 comment · May be fixed by #280

Comments

@M-Rebbi
Copy link

M-Rebbi commented Oct 12, 2022

Please update Kotlin version to 1.6.10. When I install package it doesn't run app and throw this error:
Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
e: /Users/rabbi/.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.4.2.

@maykonmichel
Copy link

Today I used patch-package to patch [email protected] for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-text-input-mask/android/build.gradle b/node_modules/react-native-text-input-mask/android/build.gradle
index c94f33f..466b5ba 100644
--- a/node_modules/react-native-text-input-mask/android/build.gradle
+++ b/node_modules/react-native-text-input-mask/android/build.gradle
@@ -27,7 +27,7 @@ android {
 
 buildscript {
     ext {
-        kotlinVersion = '1.4.31'
+        kotlinVersion = '1.6.0'
     }
     repositories {
         jcenter()

This issue body was partially generated by patch-package.

@maykonmichel maykonmichel linked a pull request Oct 13, 2022 that will close this 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

Successfully merging a pull request may close this issue.

2 participants