![]() Then select 1.8 so that way it will save the reference settings back to the table. No, when you delete the table file keep studio open. Because when android boots back up again it will check its referral settings and say "oh this user may have deleted the table of the jdk, but he still had 1.7 selected by default." What you want to do after deleting the xml file is NOT to close android studio before doing this. Replace all with your JDK version, in my case replaced all with : The newly created will have updated java8 values (which it most probably fetches from the JDK_HOME environment variable).Ĭ:\Users\WINDOW_USER_NAME\AndroidStudio2.1\config\options Open the Options folder and delete the file (keep a backup just in case).Go to wherever your Android Studio config folder is located (usually at $HOME/.AndroidStudio2.1/confg).If you've been upgrading your Android Studio and importing settings from previous installations, this might happen (it might also happen with a fresh installation). Tags : java,android,android-studio,java-8,android-studio-2.1įigured it out after looking at a few files inside the Android studio settings directory. Trying to build again gives the same error and when I check the Project Structure, the path is set back to the old JDK 1.7 automatically. I then go to Project Structure => JDK Location and update it to the 1.8 folder. The problem still persists.Įvery time I try to build the app, gradle sync fails and Android studio asks me to Choose a valid JDK directory. I looked at some other solutions and uninstalled jdk 1.7, added environment variables for JDK_HOME, JAVA_HOME, and JAVA8_HOME. I recently installed jdk 1.8 u92 after Android Studio said it is needed for api24 builds.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |