Nozbe / WatermelonDB

🍉 Reactive & asynchronous database for powerful React and React Native apps ⚡️
https://watermelondb.dev
MIT License
10.49k stars 589 forks source link

Compilation issues in android #1822

Open abdulragib opened 1 month ago

abdulragib commented 1 month ago

BUILD FAILED in 11s error Failed to install the app. Command failed with exit code 1: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. What went wrong: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher. The following dependencies do not satisfy the required version: project ':nozbe_watermelondb' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50 Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. Get more help at https://help.gradle.org. BUILD FAILED in 11s.

chrismartinez321 commented 1 month ago

Open android studio Search for this ReactNativeWatermelonDB_kotlinVersion It should show ReactNativeWatermelonDB_kotlinVersion=1.3.50 Change it so that it says ReactNativeWatermelonDB_kotlinVersion=1.5.20 Sync your gradle files and rerun

KrisLau commented 2 weeks ago

https://github.com/Nozbe/WatermelonDB/issues/1469#issuecomment-1464103225

Slightly more updated one:

  kotlinVersion = '1.9.23'
  ndkVersion = "26.1.10909125"