亚洲视频在线网站,就爱操av,一级特黄aa大片免费播放小说,国产模特av私拍大尺度,777久久久精品一区二区三区,久久久久日本精品毛片蜜桃成熟时,av在线区

首頁 服務 產品 文檔 關于

java環境配置

location of your Java installation.
error Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
error Command failed: gradlew.bat app:installDebug. Run CLI with --verbose flag for more details.

運行react-native時候出現這個問題,

先檢查是否已安裝java jdk

并以配置好環境變量

git里下載:https://github.com/frekele/oracle-java/releases

配置環境變量

以win10為例

桌面》電腦》右擊屬性》高級系統設置》環境變量》系統變量

點擊新建

變量名:JAVA_HOME

路徑:根據自己安裝目錄

確定

編輯path那個變量

先刪除第一個,oracle/java之類的路徑,java默認設置的

或者不刪除,直接編輯,改成%JAVA_HOME%\bin,這個也行,

否則

點擊新建

輸入%JAVA_HOME%\bin

最后,確定

重新打開cmd窗口,否則java還是沒有找到

運行react-native