小编Mic*_*heo的帖子

运行 React Native 应用程序时,任务 ':expo-splash-screen:compileDebugKotlin 执行失败

几个小时前,我在 Android 上运行 React Native 应用程序时没有任何问题。甚至它也成功地构建在 Azure DevOps 上。

直到我尝试再次运行该应用程序时,发生了这种情况:

* What went wrong:
Execution failed for task ':expo-splash-screen:compileDebugKotlin'.
> Compilation error. See log for more details
Run Code Online (Sandbox Code Playgroud)

我跟踪日志并显示以下消息:

> Task :expo-splash-screen:compileDebugKotlin FAILED
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
    /Users/s000-50105204/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.6.10/e80fe6ac3c3573a80305f5ec43f86b829e8ab53d/kotlin-stdlib-jdk8-1.6.10.jar (version 1.6)
    /Users/s000-50105204/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.6.10/e1c380673654a089c4f0c9f83d0ddfdc1efdb498/kotlin-stdlib-jdk7-1.6.10.jar (version 1.6)
    /Users/s000-50105204/.gradle/caches/transforms-2/files-2.1/ecefa6f1392695b7079790a9cdc8d4ee/jetified-kotlin-reflect-1.3.50.jar (version 1.3)
    /Users/s000-50105204/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.6.10/b8af3fe6f1ca88526914929add63cf5e7c5049af/kotlin-stdlib-1.6.10.jar (version 1.6)
    /Users/s000-50105204/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.6.10/c118700e3a33c8a0d9adc920e9dec0831171925/kotlin-stdlib-common-1.6.10.jar (version 1.6)
w: Some runtime JAR files in the classpath have an incompatible version. Consider removing …
Run Code Online (Sandbox Code Playgroud)

android npm kotlin react-native expo

5
推荐指数
1
解决办法
4347
查看次数

标签 统计

android ×1

expo ×1

kotlin ×1

npm ×1

react-native ×1