<p dir="auto">Use <code class="notranslate">ANDROID_SDK_ROOT</code> instead.</p>
<p dir="auto"><a href="https://developer.android.com/studio/command-line/variables.html#envar" rel="nofollow">https://developer.android.com/studio/command-line/variables.html#envar</a></p>
<blockquote>
<p dir="auto">If you continue to use it, the following rules apply:</p>
<ul dir="auto">
<li>If ANDROID_HOME is defined and contains a valid SDK installation, it's value is used instead of the value in ANDROID_SDK_ROOT.</li>
<li>If ANDROID_HOME is not defined, the value in ANDROID_SDK_ROOT is used.</li>
<li>If ANDROID_HOME is defined but, does not exist or does not contain a valid SDK installation, the value in ANDROID_SDK_ROOT is used instead.</li>
</ul>
</blockquote>
<p dir="auto">Related(?): <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="284106078" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/13750" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/13750/hovercard" href="https://github.com/flutter/flutter/issues/13750">#13750</a></p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="brew install android-sdk
echo 'export ANDROID_SDK_ROOT=&quot;/usr/local/share/android-sdk&quot;' &gt;&gt; ~/.zshrc
source ~/.zshrc
flutter doctor"><pre class="notranslate">brew install android-sdk
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">'</span>export ANDROID_SDK_ROOT="/usr/local/share/android-sdk"<span class="pl-pds">'</span></span> <span class="pl-k">&gt;&gt;</span> <span class="pl-k">~</span>/.zshrc
<span class="pl-c1">source</span> <span class="pl-k">~</span>/.zshrc
flutter doctor</pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.io/setup/#android-setup for detailed instructions).
      If Android SDK has been installed to a custom location, set $ANDROID_HOME to that location."><pre class="notranslate"><code class="notranslate">[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.io/setup/#android-setup for detailed instructions).
      If Android SDK has been installed to a custom location, set $ANDROID_HOME to that location.
</code></pre></div>
<p dir="auto">ANDROID_HOME is <a href="https://developer.android.com/studio/command-line/variables.html" rel="nofollow">deprecated</a>.  The variable is now called ANDROID_SDK_ROOT.</p>