0

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
1

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.