Example error log :
...
BUILD FAILED in 31s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
* What went wrong:
The Android Gradle plugin supports only kotlin-android-extensions Gradle plugin version 1.6.20 and higher.
The following dependencies do not satisfy the required version:
...
Fixed by adding specific Kotlin version or higher to kotlinVersion
:
buildscript {
ext {
buildToolsVersion = "..."
kotlinVersion = "x.y.z"
// ...
}
// ...
}