安装配置完成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