Android Studio JDK location changes back to 1.7 every time it is updated to 1.8 path

后端 未结 6 1854
傲寒
傲寒 2020-12-03 21:23

I recently installed jdk 1.8 u92 after Android Studio said it is needed for api24 builds. However, I\'ve run into this issue now.

I looked at some other solutions an

6条回答
  •  执笔经年
    2020-12-03 21:49

    1. close android studio

    2. go to :

    C:\Users\WINDOW_USER_NAME\AndroidStudio2.1\config\options

    open jdk.table.xml

    1. replace all with your JDK version , in my case replaced all with :

      C:/Program Files/Java/jdk1.8.0_101

    2. re-open android-studio

    3. Sync

提交回复
热议问题