I am stuck here. I connect a USB drive from my laptop to the android device but still vs code shows no device. Image Attached
-
Few points based on your image 1. uncomment the import statement in the beginning. 2. Make sure your PC detects your mobile, enable USB debugging on your mobile. – Utkarsh Mankad Feb 10 '20 at 11:31
2 Answers
Considering that you have successfully installed Flutter and Dart and their respective VS Code Plugins.
There are 2 ways to do it
If you have a physical Android Device, you must enable USB debugging on your device and then you can connect it directly to your machine. Once the device is successfully connected and detected by your machine, then its name would appear on bottom right corner in VS Code window.
If you don't have a physical device, then you must create an emulator image of Android platform of your choice. The emulator image must be created from AVD manager present in Android SDK. Once the AVD image is ready and running, the name of the AVD would appear on bottom right corner of VS Code window.
If you see your device name on bottom corner of VS Code, then press F5 and wait for the app to load on the device/emulator.

- 247
- 1
- 6
- 18
There are basically two ways before the app is released.
- USB Debugging
- Wireless Debugging
- Connect via USB:
adb tcpip 5555
- Disconnect USB, Get Phone Ip Address
Settings > About Phone > Status
. - Now
adb connect <Your IP Address>
- Connect via USB:
Refer:

- 14,953
- 4
- 49
- 88