Android Studio is using this JDK location … which is different to what Gradle uses by default

前端 未结 5 2359
悲哀的现实
悲哀的现实 2021-02-18 14:07

After Android Studio sync my gradle project, I see the following message in the event log:

Android Studio is using this JDK location:

5条回答
  •  梦谈多话
    2021-02-18 14:34

    I am working on a windows system. I went to the control panel and opened the environment variables and copied the location of the JAVA_HOME key. I placed this directory into the Project Structure/SDK Location window in Android Studio. After saving the changes Gradle was able to sync with no issues. The location of the SDK Locations window is in the question for this post.

提交回复
热议问题