I added the steps provided by docs.
I also added Android SDK to the environmental variable but it's still remaining an issue.
I also tried these steps but it didn't work.
Also asked on https://github.com/flutter/flutter/issues/19805
I added the steps provided by docs.
I also added Android SDK to the environmental variable but it's still remaining an issue.
I also tried these steps but it didn't work.
Also asked on https://github.com/flutter/flutter/issues/19805
For MAC:
AndroidStudio -> Preferences -> Appearance & Behavior -> System Settings -> Android SDK Please try adding
G:\sdk\tools and G:\sdk\platform-tools to the PATH environment variable.
I was using Windows 10 and I encounter this issue. I had tried ANDROID_HOME to my path but it was not working because I was forget to add tools and build-tools in path variable. try this Open Edit the system Environment Setting(Search in Windows search).
PATH or Edit it Add platform-tools,build-tools,tools (All folders are in Your SDK path)Reopen Terminal and type Flutter Doctor
Done
flutter doctorand at the same time say "flutteris not recognized as n internal or external command". If it were not recognized you could not runflutter doctor. Why do you not post the output where the error is shown you used as question title. Or is the question actually about the Android SDK? Then please fix the title.adb --versionin a terminal?