Home > database >  Why can't debug my Flutter App on my phone in VS Code while coding
Why can't debug my Flutter App on my phone in VS Code while coding

Time:05-21

I've just setup my windows environment for mobile development using Flutter in VS Code but I am getting this error while trying to debug on my phone

avdmanager is missing from the Android SDK

CodePudding user response:

If you're using an emulator, check AVD manager is installed, and the emulator is installed. here is how to do that

or if you're using a physical phone Here is one of the workaround:

Open Android Studio then click on SDK Manager (down-pointing arrow)

This should open a new box with your Android SDK Location at the top. It should look like this:

/Users/username/Library/Android/sdk

Configure the path of android-sdk

flutter config --android-sdk /Users/username/Library/Android/sdk

Add android-license to Flutter

flutter doctor --android-licenses

Then, you can run flutter doctor to verify,

CodePudding user response:

did you turned on developer options on your phone ?

  • Related