Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android device is not showing up on VS Code/Android Studio

VS code and Android Studio is recognizing my connected android device. My device is showing up on file explorer though. I have turned on USB debugging from settings too.

enter image description here

Below is the result of flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.8.1, on Microsoft Windows [Version 10.0.22000.493], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[√] Android Studio (version 4.0)
[√] VS Code (version 1.64.2)
[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.

What I have tried

https://github.com/Dart-Code/Dart-Code/issues/1634#issuecomment-485071966 https://developer.android.com/studio/run/oem-usb#Win10

like image 573
Faizan Kamal Avatar asked Feb 28 '26 07:02

Faizan Kamal


2 Answers

After I set up Flutter and got flutter doctor running, I plugged in my Android phone. Neither flutter doctor or VS Code could detect it!

I already turned on Developer Options and USB debugging “File sharing”.

Developer Options > Select USB Configuration > Change it from “File Transfer” (default option) to Charging” The phone will ask if you want to always allow USB debugging from this device.

Say yes.

After that, VS Code was able to detect my Android phone, and I was able to run my app on it!

like image 147
dieb Avatar answered Mar 02 '26 22:03

dieb


Please check you follow the proper steps to connect your Device.

  1. Turn on the developer options on your device
  2. Enable USB debugging on your Device
  3. When connecting the device to your Machine don't select charge only mode
  4. Accept Certificate in certificate popup for the machine after connecting the device
like image 43
Jawad Avatar answered Mar 02 '26 22:03

Jawad



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!