Incompatibility with react-native-iap: Kotlin version issue
See original GitHub issueWhen having both this package and react-native-iap, we cannot build for android, we get the following error:
Task :react-native-iap:compilePlayDebugKotlin FAILED
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
=> react-native-pager-view is using kotlin v1.4.0 react-native-iap is using kotlin v1.5.0
I tried changing my android/build.gradle with:
dependencies {
...
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0"
}
But unfortunately the issue remains the same. Anyone managed to fix this? 😕
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:6
Top Results From Across the Web
I ran into kotlin version conflict with react native app
Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.16.
Read more >react-native-iap - npm
Version 8.0.0 is currently in release candidate. The module is completely rewritten with Kotlin and Swift for maintenenance issue by ...
Read more >jetified-kotlin-stdlib | The AI Search Engine You Control
"Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.16".
Read more >Android App build error - I have no idea what to do
Note: /tmp/592071-android-254513/node_modules/lottie-react-native/src/android ... Unit' was compiled with an incompatible version of Kotlin.
Read more >React Native IAP: Getting started
react -native-iap will help you access the In-App purchases capabilities of your device on iOS, and Android (Play Store and Amazon).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Upgrade your kotlin plugin in react-native:
Go to
android/build.gradle
and change the following line:classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:<latest-version-here>"
try kotlin 1.5.31