Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lexop13 opened this issue Dec 22, 2024 · 0 comments

Comments

@lexop13
Copy link

lexop13 commented Dec 22, 2024

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 lexop13 changed the title The supplied phased action failed with an exception. Execution failed for task ':gradle-plugin:settings-plugin:compileKotlin'. A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction Compilation error. See log for more details Execution failed for task ':gradle-plugin:settings-plugin:compileKotlin'. A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunner RN Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant