Closed ChrisMichaelPerezSantiago closed 5 months ago
Hello, same issue here, I have react-native 0.70.8.
Hi,
I managed to by pass this adding this to the gradle.properties
kotlinVersion=1.7.0
I found a workaround:
org.jetbrains.kotlin:kotlin-gradle-plugin:null
has null
version. The lib searches for kotlin version by the following line:
So it expects the version to be in the root project (the app project) or in the project
(I don't know what it refers to).
The project
properties it refers to I think is: https://github.com/segmentio/analytics-react-native/blob/7160d3d669502b390e9d6712c7db39b30c410e91/packages/core/android/gradle.properties#L1
So I set the kotlinVersion = 1.7.0 in my app project and it works!
Because I have the following in my android/build.gradle
if (findProperty('android.kotlinVersion')) {
kotlinVersion = findProperty('android.kotlinVersion')
}
I changed my android/build.properties and added:
android.kotlinVersion=1.7.0
OR you can just add the version to your android/build.gradle:
buildscript {
ext {
kotlinVersion = '1.7.0'
.....
}
}
Hope it helps
Faced the same issue the fixxes above work perfectly
what can I do since I'm using expo to build, and I don't have android folder in local ?
Addressed in #967
Installed Dependencies:
This error is present when launching the android emulator