Android Studio 3.0 with Flutter & Dart plugin not recognizing USB or virtual devices when clicking Play
See original GitHub issueFrom @tomnta on November 14, 2017 19:22
Steps to Reproduce
Run “Flutter Devices” in Windows 10 Command Prompt shows that a device is connected.
flutter devices 1 connected device: SM N950U1 • ce06xxxxxxxx • android-arm • Android 7.1.1 (API 25)
However, pressing Run in Android Studio 3.x returns this error popup:
No connected devices found; please connect a device, or see flutter.io/setup for getting started instructions.
https://flutter.io/setup/ guides the user to this link https://flutter.io/setup-windows/#android-setup
And that page has no directions on how to setup the IDE to recognize that you have a device attached or to have it work with the virtual device.
The same error window pops up when you select a virtual device and press Play in Android Studio. However, pressing Play on an Android project works fine with virtual and USB devices.
Logs
Run your application with
flutter run
and attach all the log output. Runflutter analyze
and attach any output of that command also.
N/A. The command line tool works fine. The Android Studio plugin has issues.
Flutter Doctor
[√] Flutter (on Microsoft Windows [Version 10.0.14393], locale en-US, channel alpha) • Flutter at C:\Users\Tom\flutter • Framework revision e8aa40eddd (4 weeks ago), 2017-10-17 15:42:40 -0700 • Engine revision 7c4142808c • Tools Dart version 1.25.0-dev.11.0
[√] Android toolchain - develop for Android devices (Android SDK 27.0.0) • Android SDK at C:\Users\Tom\AppData\Local\Android\sdk • Platform android-27, build-tools 27.0.0 • Java binary at: F:\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[√] Android Studio (version 3.0) • Android Studio at F:\Android\Android Studio • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[√] Connected devices • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)
Flutter plugin version 19
Copied from original issue: flutter/flutter#13020
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:39 (9 by maintainers)
Top GitHub Comments
just run as administrator cmd, powershell, android studio in windows solved my problem…try it once!!!
I had the same problem today. The device selector in the Android Studio toolbar wouldn’t even show up, but the device was in the list of connected devices when running
flutter doctor -v
. Yesterday everything worked fine.I ran the app from the command line with
flutter run
and after that, the device showed up again in Android Studio and I could run from inside the editor.