Search code examples
fluttervisual-studio-code

Why visual studio code does not recognize my phone?


I am new with flutter. when connecting the device the pc detects it but not the vscode enter image description here

However, here I leave what flutter doctor throws. I'm new to flutter so I don't quite understand what they suggest. I already have usb debugging enabled developer options install via usb etc. it's a redmi 9a.

enter image description here


Solution

  • Simple way:

    1. Download android studio
    2. Click Tools > SDK Manager. Or

    enter image description here

    In the SDK Tools tab,

    enter image description here

    In the SDK platforms tab, install any one android version

    enter image description here

    Go to the windows terminal and accept android licenses.

    flutter doctor --android-licenses
    

    Make sure you have vs code extensions for flutter installed and then restart your VS Code.

    You also have to enable USB debugging in developer options in your mobile in order to get detected by your PC

    There is a hard way too without installing android studio.