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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With