问题
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