Reputation: 2162
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.
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
Upvotes: 2
Views: 15512
Reputation: 6509
Also if nothing helps - try to change usb cable. For me with my Mac it helps if no device shown/it disappears from time to time.
Upvotes: 0
Reputation: 160
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!
Upvotes: 10
Reputation: 119
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
Upvotes: 1
Reputation: 61
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.
Upvotes: 0
Reputation: 201
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"
Upvotes: 1
Reputation: 31
Please check you follow the proper steps to connect your Device.
Upvotes: 3