Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why doesn't Android Studio accept new Java JDK location

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. enter image description here enter image description here enter image description here

like image 985
Hong Avatar asked Mar 02 '26 20:03

Hong


1 Answers

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.

like image 189
Akshay Avatar answered Mar 04 '26 15:03

Akshay



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!