运行npx react-native run-android
我收到此错误
* What went wrong:
Execution failed for task ':unimodules-constants-interface:compileDebugJavaWithJavac'.
> Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_261 contains a valid JDK installation.
有人可以解释这是什么问题吗?
答案 0 :(得分:0)
在您指向JRE时,它似乎正在寻找JDK。您是否已安装JDK?如果是这样,也许尝试指向它。