Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
324 views
in Technique[技术] by (71.8m points)

Why doesn't Android Studio accept new Java JDK location

I am trying to change the JDK location from "C:Program FilesJavajdk1.7.0_09" to "C:Program FilesJavajdk1.8.0_25", but Android Studio seems to ignore the change completely. The location remains "C:Program FilesJavajdk1.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. enter image description here enter image description here enter image description here

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...