【发布时间】:2021-03-06 04:39:08
【问题描述】:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-linear-gradient:compileDebugJavaWithJavac'.
> Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation.
当我升级到 Mac os Big sur 并运行时,
npx react-native run-android
我收到此错误 (Android)。我尝试了很多 Stack Overflow 的解决方案,但都没有奏效。
我创建了一个新项目并且它正在运行。此外,一些旧项目也运行良好。
*react-native Version: "0.63.3",*
请帮我找到解决办法?
【问题讨论】:
-
这能回答你的问题吗? Gradle does not find tools.jar
-
对于 MacOS 用户,请在另一个线程上查看我的答案:Execution failed for task ':app:compileDebugJavaWithJavac'. > Could not find tools.jar
-
@NatanLotério 救了我的命
标签: android react-native react-native-android