1

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

Faizan Kamal
  • 1,056
  • 1
  • 15
  • 36

4 Answers4

1

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
Jawad
  • 11
  • 1
1

Please check link below. It might solve your problem of not showing devices (Message "flutter run: No connected devices"):- Message "flutter run: No connected devices"

Manoj Kumar
  • 136
  • 5
0

Once check the output of the command

adb devices

If the list is empty then the system has recognized your device as a storage device. Then you need to install android SDK from the Android Studio IDE and try again.

0

Go to your terminal and run this command.

flutter devices

This will verify if flutter has recognized your device or not.

Also check and verify this.

flutter config --android-sdk ANDROID_SDK_PATH

At last you can check this link - https://docs.flutter.dev/get-started/install/macos#set-up-your-android-device

Amit Singh Kaira
  • 101
  • 1
  • 10