upgrade-support icon indicating copy to clipboard operation
upgrade-support copied to clipboard

Execution failed for task ':gradle-plugin:settings-plugin:compileKotlin'. A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunner RN

Open lexop13 opened this issue 1 year ago • 2 comments

buildscript { ext { buildToolsVersion = "35" minSdkVersion = 24 compileSdkVersion = 35 targetSdkVersion = 34 ndkVersion = "26.1.10909125" kotlinVersion = "1.8.0" // Ensure Kotlin version is correct }

repositories {
    google()
    mavenCentral()
}

dependencies {
    classpath("com.android.tools.build:gradle:4.2.2")  // Make sure the AGP version is correct
    classpath("com.facebook.react:react-native-gradle-plugin: 0.73.4")
  classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.0")

// Correct Kotlin plugin version } }

allprojects { repositories { google() mavenCentral() } }

apply plugin: "com.android.application" apply plugin: "org.jetbrains.kotlin.android" apply plugin: "com.facebook.react"

react {

autolinkLibrariesWithApp()

} def enableProguardInReleaseBuilds = false

def jscFlavor = 'org.webkit:android-jsc:+'

android { ndkVersion rootProject.ext.ndkVersion buildToolsVersion rootProject.ext.buildToolsVersion compileSdkVersion rootProject.ext.compileSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion namespace "com.re"

defaultConfig {
    applicationId "com.re"
    minSdkVersion rootProject.ext.minSdkVersion
    targetSdkVersion rootProject.ext.targetSdkVersion
    versionCode 1
    versionName "1.0"
}
signingConfigs {
    debug {
        storeFile file('debug.keystore')
        storePassword 'android'
        keyAlias 'androiddebugkey'
        keyPassword 'android'
    }
}
buildTypes {
    debug {
        signingConfig signingConfigs.debug
    }
    release {
        // Caution! In production, you need to generate your own keystore file.
        // see https://reactnative.dev/docs/signed-apk-android.
        signingConfig signingConfigs.debug
        minifyEnabled enableProguardInReleaseBuilds
        proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
    }
}

}

dependencies { // The version of react-native is set by the React Native Gradle Plugin implementation(project(":react-native-maps")) { exclude group: 'com.facebook.react', module: 'react-native' }

implementation 'com.google.android.gms:play-services-maps:18.1.0'


if (hermesEnabled.toBoolean()) {
    implementation("com.facebook.react:hermes-android")
} else {
    implementation jscFlavor
}

} distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https://services.gradle.org/distributions/gradle-8.3-all.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists

lexop13 avatar Dec 22 '24 21:12 lexop13

im having same issue how do you fixed it?

amthirukumaran avatar Feb 19 '25 06:02 amthirukumaran

try using Gradle version 8.10.2 in gradle-wrapper.properties

distributionUrl=https://services.gradle.org/distributions/gradle-8.10.2-all.zip

sahil2401 avatar Feb 27 '25 10:02 sahil2401