I'm facing a build failure in my React Native 0.80.1 project with Gradle 8.2. The error occurs during :react-native-gradle-plugin:compileKotlin
task.
Error Details:
Task :react-native-gradle-plugin:compileKotlin FAILED FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':react-native-gradle-plugin:compileKotlin'.
Compilation error. See log for more details
Environment:
- React Native: 0.80.1
- Gradle Wrapper: 8.2-bin
- Android Gradle Plugin: 8.3.2
- Kotlin Version: 1.9.23 (forced via resolution strategy)
- JDK: 11
Relevant Configuration Files:
android/build.gradle
:
buildscript {
ext {
buildToolsVersion = "36.0.0"
minSdkVersion = 23
compileSdkVersion = 36
targetSdkVersion = 36
ndkVersion = "24.0.8215888" // M1
}
dependencies {
classpath("com.android.tools.build:gradle:8.3.2")
classpath("com.facebook.react:react-native-gradle-plugin") {
exclude group: "org.jetbrains.kotlin"
}
}
}
allprojects {
configurations.all {
resolutionStrategy {
eachDependency { details ->
if (details.requested.group == 'org.jetbrains.kotlin') {
details.useVersion '1.9.23'
}
}
}
}
}
android/gradle/wrapper/gradle-wrapper.properties:
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
halfer
20.2k19 gold badges110 silver badges207 bronze badges
asked Sep 30 at 14:40
-
docs.gradle.org/current/userguide/compatibility.html Maybe this can helpThomasino73– Thomasino732025年10月01日 10:32:52 +00:00Commented Oct 1 at 10:32