Why doesn't Android Studio accept new Java JDK location

六月ゝ 毕业季﹏ 提交于 2019-12-28 01:36:13

问题


I am trying to change the JDK location from "C:\Program Files\Java\jdk1.7.0_09" to "C:\Program Files\Java\jdk1.8.0_25", but Android Studio seems to ignore the change completely. The location remains "C:\Program Files\Java\jdk1.7.0_09".

Could anyone offer a tip on how to remedy this?

I have tried many times and restarted AS a few times. I must be missing something fundamental.


回答1:


Try this, may be work.

Android studio don't accept a SDK path that contains a whitespace. In your SDK path, there is a white space between 'Program Files'. Therefore Android Studio showing the error. Solution- Try placing the SDK at 'C:\sdk'. Then change the SDK location in Project Structure.



来源:https://stackoverflow.com/questions/38404463/why-doesnt-android-studio-accept-new-java-jdk-location

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!