flutter / flutter/flutter-intellij

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

Open
#1,525 40 comments 5 reactions 0 assignees View on GitHub
❖ platform-windows
Dominant language
Java
Stars
2k
Forks
356
Avg merge
1d 11h
Merged PRs (30d)
27

Description

_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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.