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).我try 了很多来自Stack Overflow的解决方案,但都没有奏效.
我已经创建了一个新的项目,它正在发挥作用.此外,一些老项目也运行得很好.
*react-native Version: "0.63.3",*
请帮我找到解决办法?