Android Studio is using this JDK location ... which is different to what Gradle uses by default : <p>After Android Studio sync my gradle project, I see the following message in the event log:</p>

<blockquote>
  <p>Android Studio is using this JDK location:
              <code>/path/to/my/project/specific/jdk</code>
              which is different to what Gradle uses by default:
              <code>/path/to/android/studio/embedded/jdk</code>
              Using different locations may spawn multiple Gradle daemons if
              Gradle tasks are run from command line while using Android Studio.
              Set Android Studio to use the same JDK as Gradle and sync project</p>
</blockquote>

<p>I have <code>/path/to/my/project/specific/jdk</code> set in <code>Project Structure</code>-><code>SDK Location</code> -> <code>JDK Location</code> -> <code>Other</code>
<a href="https://i.stack.imgur.com/8v3YH.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8v3YH.png" alt="Project Structure -&gt; SDK Location -&gt; JDK Location -&gt; Other"></a></p>

<p>I have the following in my <code>.bash_profile</code>:</p>

<pre><code>export JAVA_HOME=/path/to/my/project/specific/jdk
</code></pre>

<p>and the <a href="https://developer.android.com/studio/command-line/variables#studio_jdk" rel="noreferrer"><code>STUDIO_JDK</code> documentation</a> says:</p>

<blockquote>
  <p>Sets the location of the JDK with which to run Studio. When you launch
  Android Studio, it checks the <code>STUDIO_JDK</code>, <code>JDK_HOME</code>, and <code>JAVA_HOME</code>
  environment variables in that order.</p>
</blockquote>

<p>So I would expect that Android Studio would find <code>/path/to/my/project/specific/jdk</code>, but it doesn't. Is there a special JDK setting specifically for gradle?</p>
