Flutter Unable to run "adb", check your Android SDK installation and ANDROID_SDK_ROOT environment variable

3,274

Solution 1

Kindly first of all check your latest sdk first step: enter image description here

Second step: enter image description here

Third step: Run flutter doctor --android-licenses Press Y against each agreement

If you have done above steps then please follow the bellow process

Flutter provides a command to update the Android SDK path:

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

Normally the Android SDK path is C:\Users[your Local user folder]\AppData\Local\Android\Sdk

Solution 2

For Me. The problem is the antivirus program. It denied access to starting the flutter daemon on port 5037. I disabled/exited the antivirus program. Then it works.

Share:
3,274
Aditya prasad
Author by

Aditya prasad

Updated on December 26, 2022

Comments

  • Aditya prasad
    Aditya prasad over 1 year

    everytime i run flutter doctor i am facing this issue how can i get rid out of it plz hep. flutter error

    • Mohammad Mirshahbazi
      Mohammad Mirshahbazi over 3 years
      Please reinstall the Flitter and Android SDK and try agin!
  • Jagadish
    Jagadish over 3 years
    Hope this helps you...if not please inform in comments