小编CHA*_*HE.的帖子

React-native-gradle-plugin:编译 Kotlin 失败

我将 React Native vrsion 从 0.64.1 升级到最新版本。当尝试运行时

cd .\android\ && ./gradlew clean
Run Code Online (Sandbox Code Playgroud)

我收到以下错误,

> Task :react-native-gradle-plugin:compileKotlin FAILED
Caching disabled for task ':react-native-gradle-plugin:compileKotlin' because:
  Build cache is disabled
Task ':react-native-gradle-plugin:compileKotlin' is not up-to-date because:
  Task has failed previously.
The input changes require a full rebuild for incremental task ':react-native-gradle-plugin:compileKotlin'.
'compileJava' task (current target is 1.8) and 'compileKotlin' task (current target is 11) jvm target compatibility should be set to the same Java version.
Using Kotlin/JVM incremental compilation
[KOTLIN] Kotlin compilation 'jdkHome' …
Run Code Online (Sandbox Code Playgroud)

android gradle react-native

5
推荐指数
0
解决办法
935
查看次数

标签 统计

android ×1

gradle ×1

react-native ×1