Skip to content

No compiling with fresh project on React native 0.72.0Β #65

@Koxx3

Description

@Koxx3

Hello,

I al facing this issue when building :

error Failed to install the app. Command failed with exit code 1: gradlew.bat tasks FAILURE: Build failed with an exception. 
* What went wrong: Execution failed for task ':tasks'. 
> Could not create task ':voximplant_react-native-foreground-service:compileDebugJavaWithJavac'. 
> In order to compile Java 9+ source, please set compileSdkVersion to 30 or above * Try: 
> Run with --stacktrace option to get the stack trace. 
> Run with --info or --debug option to get more log output. 
> Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 30s     
Starting a Gradle Daemon, 2 incompatible and 1 stopped Daemons could not be reused, use --status for details 
> Task :gradle-plugin:compileKotlin UP-TO-DATE 
> Task :gradle-plugin:compileJava NO-SOURCE 
> Task :gradle-plugin:pluginDescriptors UP-TO-DATE 
> Task :gradle-plugin:processResources UP-TO-DATE 
> Task :gradle-plugin:classes UP-TO-DATE 
> Task :gradle-plugin:jar UP-TO-DATE 
> Task :gradle-plugin:inspectClassesForKotlinIC UP-TO-DATE 
> Task :tasks FAILED 6 actionable tasks: 1 executed, 5 up-to-date.

my gradle file :

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    ext {
        buildToolsVersion = "33.0.0"
        minSdkVersion = 21
        compileSdkVersion = 33
        targetSdkVersion = 33

        // We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
        ndkVersion = "23.1.7779620"
    }
    repositories {
        google()
        mavenCentral()
    }
    dependencies {
        classpath("com.android.tools.build:gradle")
        classpath("com.facebook.react:react-native-gradle-plugin")
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions