question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android Studio 3.0 with Flutter & Dart plugin not recognizing USB or virtual devices when clicking Play

See original GitHub issue

From @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. Run flutter 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:open
  • Created 6 years ago
  • Reactions:5
  • Comments:39 (9 by maintainers)

github_iconTop GitHub Comments

5reactions
akash1202commented, May 10, 2018

just run as administrator cmd, powershell, android studio in windows solved my problem…try it once!!!

3reactions
kenneth-g-fluxcommented, Feb 27, 2018

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

android studio - Message "flutter run: No connected devices"
First connect the device to the laptop and in mobile, open settings of the smartphone and search for Developer Options and click on...
Read more >
Android Studio and IntelliJ - Flutter documentation
How to develop Flutter apps in Android Studio or other IntelliJ products. ... the Set up an editor instructions to install the Dart...
Read more >
Create and edit run/debug configurations - Android Developers
Android Studio can create a run/debug configuration for some items displayed in the Project window. The configuration is based on a default template,...
Read more >
Android - ArchWiki
5 Run Android apps on Arch Linux; 6 Troubleshooting. 6.1 Android Studio: Android Virtual Devices show 'failed to load'. 6.2 Android Studio: ...
Read more >
Create Your App With Flutter In 5 Days - Level Up Coding
First of all, make sure you have Android Studio version 3.0+. If you are not having ... Click yes when prompted to install...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found