安裝配置完成Android SDK環境后,驗證是否配置環境是否成功報錯(ERROR: No suitable Java found. In order to properly use the Android Developer Tools, you need a suitable version of Java JDK installed on your system.)


cmd輸入命令adb,正常

cmd輸入命令android報錯(ERROR: No suitable Java found. In order to properly use the Android Developer Tools, you need a suitable version of Java JDK installed on your system.)

實際報錯如圖

 

 解決方法:

網上找到了問題所在和解決方案。

好像是因為SDK中一個文件的原因——find_java,r17以上的版本重寫了find_java.bat ,我們需要把這個文件替換回r16的版本文件。文件位置:在你的SDK解壓后的文件名\tools\lib下面

文件下載地址:https://pan.baidu.com/s/19EYPseh43Ks0gnsv30xlUA

密碼:hi5u

 

替換后

 

 

 


參考原文:https://blog.csdn.net/Alexwym/article/details/81269186

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 pycharm安裝第三方庫時報錯: Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at Android Studio運行報錯,Cannot find System Java Compiler. Ensure that you have installed a JDK...... Error running 'lis [clean]': No valid Maven installation found. Either set the home directory in the configuration dialog or set the M2_HOME environment variable on your system. 關於eclipse Installed JREs 添加 jdk10.0.2時,提示“Target is not a JDK root. System library was not found.”的解決方案 安裝android sdk程序時提示:Java Se Development Kit(JDK)not found .Error:Failed to find java.exe on the system,或者執行SDK Manager程序不成功,一閃而過的解決辦法 SpringBoot測試類啟動錯誤 java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test idea無法clean報錯Error running 'lizi-user-api [clean]': No valid Maven installation found. Either set the home directory in the configuration dialog or set the M2_HOME environment variable on your system. java、Android SDK、adb環境變量配置,以及JDK1.7換JDK1.8 Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK. Looked here: C:\Users\Administrator\AppData\Local\Android\sdk\tools\templates\gradle\wrapper This Android SDK requires Android Developer Toolkit version 23.0.0 or above.
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM