...
Once they are installed, add the following variables to your path to ensure they are accessible.
[Android SDK installation directory]/platform-tools
[Android SDK installation directory]/emulator
[Android SDK installation directory]/tools
[Android SDK installation directory]/tools/bin
Download the Java Development Kit if you do not have it already. Make sure you know the directory it is installed in
Create some environment variables:
Create a JAVA_HOME variable and set the directory to your jdk installation
Create a ANDROID_HOME variable and set the directory to your android sdk installation
Run
flutter doctor
. If this is no longer showing you a warning/error for Android Studio and Android Toolchain, runflutter doctor --android-licenses
and accept all licenses. If you are still running into issues, watch this video here
...