I try to make android studio (emulator) work with vs-code but have an error "avdmanager is missing from the Android SDK"
9,406
Solution 1
Try :
flutter doctor --android-licenses
if something wrong, try to locate android sdk path.
flutter config --android-sdk {path}
Mine :
flutter config --android-sdk C:\Android\Sdk
Solution 2
This worked for me. If you have sdkmanager
, avdmanager
and emulator
, and you have them in your PATH environmental variable, then
- Download a system image:
sdkmanager "system-images;android-30;google_apis_playstore;x86_64"
(you can find available packages with sdkmanager --list --verbose
)
- Create a new virtual device with
avdmanager create avd --name MyAndroidDevice --package "system-images;android-30;google_apis_playstore;x86_64"
- Start the emulator
emulator -avd MyAndroidDevice
- Now restart VSCode and open your Flutter project. The new device should be at the bottom right corner or you should be able to choose it by clicking on "No device".
Author by