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

前端 未结 5 2358
悲哀的现实
悲哀的现实 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:50

    I am using a windows system from microsoft too. To solve the this problem, just follow these simple steps.

    1. Set your JAVA_HOME environnement variable to point to your installed jdk. In my case that was C:\Program Files\Java\jdk-9.0.1

    2. Then, In Android studio, click on Select a JDK from the File System from your Even Log or go to project struture then sdk location.

    3. Set the jdk location as indicate in the above image and click on apply.

提交回复
热议问题