Closed przbadu closed 2 years ago
I have few month old project running in below versions, and it is working fine:
"@nozbe/watermelondb": "0.23",
"react": "17.0.1",
"react-native": "0.64.2",
Ok after doing some investigation, latest version of watermelondb works well with react-native: 0.64.2
"@nozbe/watermelondb": "^0.24.0",
"react": "17.0.1",
"react-native": "0.64.2"
So, it definitely is an issue on latest version of react-native
more specifically, 0.66.4
version of react-native and watermelondb causing above error.
failed with "react-native": "0.65.1"
fails with "react-native": "0.67.1",
as well
Kotlin is on 1.6.10, just like przbadu nevermind, I was in 1.3.10 (or 20).
Updated Kotlin on Android Studio to 1.6.10 and still had errors.
Then added kotlinVersion = "1.6.10"
to android/build.gradle
and it works now:
buildscript {
ext {
...
kotlinVersion = "1.6.10"
}
@przbadu while your Kotlin is on 1.6.10 (on Android Studio), the logs say that you're using a 1.3 version. Check if you have a version on the build.gradle
This worked!
I have:
{
"@nozbe/watermelondb": "^0.24.0",
"react": "17.0.2",
"react-native": "0.66.4",
}
Just updated android/build.gradle
as @andrepaulo-bit suggested and it work just fine. :tada:
kotlinVersion = "1.6.10"
Thanks @andrepaulo-bit
Steps:
Then add
.babelrc
fileLibrary version:
Run the app
Current Kotlin version
2.6.10
Build Error