admin管理员组文章数量:1356874
I am using React-Native cli to develop my react native app but I have encountered an issue and there was no chance to get it fixed.
What I tried
remove nodemodules and package-lock.json and npm i
update react native and expo to latest version
sync project with android studio
What i receive when sync project in android studio
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
BUILD SUCCESSFUL
then go to VS code and cd android -> ./gradlew clean -> ./gradlew build
and get this error when run ./gradlew build :
Task :expo:compileDebugKotlin FAILED
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':expo:compileDebugKotlin'. A failure occurred while executing .jetbrains.kotlinpilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction Compilation error. See log for more details
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 .
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
android\build.gradle
buildscript {
ext {
buildToolsVersion = "35.0.0"
minSdkVersion = 24
compileSdkVersion = 35
targetSdkVersion = 35
ndkVersion = "27.1.12297006"
kotlinVersion = "2.0.21"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.google.gms:google-services:4.4.2'
classpath("com.android.tools.build:gradle")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath(".jetbrains.kotlin:kotlin-gradle-plugin")
}
}
apply plugin: "com.facebook.react.rootproject"
package.json
"expo": "^52.0.19",
"react-native": "^0.78.1"
any suggestions would be appreciated.
UPDATE
I updated expo task manager to latest then got :
Task :expo:compileDebugKotlin FAILED
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task >':expo:compileDebugKotlin'. A failure occurred while executing >.jetbrains.kotlinpilerRunner.GradleCompilerRunnerWithWorkers$Grad>leKotlinCompilerWorkAction
本文标签: androidTask expocompileDebugKotlin FAILEDStack Overflow
版权声明:本文标题:android - Task :expo:compileDebugKotlin FAILED - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743986986a2571447.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论