How to Set Java Sdk Path in Androidstudio?
I Had Java 1.7.0_21 Installed and I Installed 1.7.0_45 Today After Uninstalling the Previous Version. Now Android Studio Has Stopped Compiling Projects and...
I had Java 1.7.0_21 installed and I installed 1.7.0_45 today after uninstalling the previous version. Now Android Studio has stopped compiling projects and says that it cant locate the 1.7.0_21 folder. How can I set the new path for Java SDK? I have changed the environment variables also but didn't work.
9 Answers
Must Read
Up to Android Studio 4.2
Go to File > Project Structure > SDK Location. The third field is "JDK Location" where you can set it. This will set it for the current project.
To set the default for new projects, go to File > Other Settings > Default Project Structure > SDK Location and set the "JDK Location".