After Android Studio sync my gradle project, I see the following message in the event log:
Android Studio is using this JDK location:
I started getting this warning after updating to Android studio version 3.6. I was getting below warning:
Android Studio and Gradle are using different locations for the JDK.
Android Studio: C:\Program Files\Android\Android Studio\jre
Gradle: C:\Program Files\AdoptOpenJDK\jdk-11.0.3.7-hotspot
Using different JDK locations might cause Gradle to spawn multiple daemons
when executing tasks for Android Studio and other external processes.
To fix this warning I changed the project JDK location to Gradle JDK location.
from dropdown select JDK location of your Gradle. In my case it is below location :
Gradle: C:\Program Files\AdoptOpenJDK\jdk-11.0.3.7-hotspot
Click apply and Ok.