簡體   English   中英

找不到 tools.jar

[英]Could not find tools.jar

運行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.

有人可以解釋一下這有什么問題嗎?

當您指向 JRE 時,它似乎正在尋找 JDK。 你有安裝JDK嗎? 如果是這樣,也許可以嘗試指出這一點。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM