Error after running flutter doctor : Unable to locate Android SDK

Issue

I got these errors after installing flutter then running flutter doctor to check if the installation succeeded, Although I’ve installed both Android Studio and Android SDK in Android Studio’s installation progress steps with no issues at all, what do I have to do now?

Click here to show the image!

Solution

If you’re using android studio, try these steps :

  1. Click Tools > SDK Manager.

  2. In the SDK Platforms tab, select Android 10 (29).

  3. In the SDK Tools tab, select Android SDK Build-Tools 29 (or higher).

  4. Click OK to begin install.

In case if above steps don’t solve your problem then try updating the SDK path

flutter config --android-sdk <path-to-your-android-sdk-path>

Note: path must be enclosed within double quotes

"C:\Users\username\AppData\Local\Android\Sdk"

Answered By – Niteesh

Answer Checked By – Terry (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *