Skip to content

Android Studio device list shows "loading" and no devices connected #3892

Closed
@masem1899

Description

@masem1899

0

I've installed Android Studio with Flutter/Dart plugin on Win10. Android Studio 3.4.2 Flutter Plugin 38.2 Dart Plugin v183.6270

If i open a Flutter project in android studio, the device list always displays "loading", in the device list i see my three devices:
image

I selected one device and it opens on the emulator, but when i start the project this error message is displayed:
image

When i run "flutter devices", the device is listed as connected:
image

What is going wrong?

Activity

stevemessick

stevemessick commented on Sep 19, 2019

@stevemessick
Member

Do you still see this problem after updating everything to latest (AS, plugin, SDK)?

tahmid-shahriar

tahmid-shahriar commented on Sep 26, 2019

@tahmid-shahriar

having the same problem with latest AS & Plugins

added this to the M40 milestone on Sep 26, 2019
no-response

no-response commented on Sep 26, 2019

@no-response

Without additional information we're unfortunately not sure how to resolve this issue. We're going to close this bug for now, but please don't hesitate to comment on the bug if you have any more information for us; we're happy to reopen. Thanks for your contribution!

devoncarew

devoncarew commented on Sep 26, 2019

@devoncarew
Member

We'll investigate and see if we can repro/

incognitojam

incognitojam commented on Sep 26, 2019

@incognitojam

I'm also having the same issue.

Output from flutter doctor -v:

$ flutter doctor -v
[√] Flutter (Channel beta, v1.9.1+hotfix.3, on Microsoft Windows [Version 10.0.18990.1], locale en-GB)
• Flutter version 1.9.1+hotfix.3 at C:\src\flutter
• Framework revision a72edc2706 (23 hours ago), 2019-09-25 15:41:01 -0700
• Engine revision b863200c37
• Dart version 2.5.0

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at C:\Users\camer\Android
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• ANDROID_HOME = C:\Users\camer\Android
• Java binary at: C:\Users\camer\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\191.5791312\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
• All Android licenses accepted.

[√] Android Studio (version 3.5)
• Android Studio at C:\Users\camer\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\191.5791312
• Flutter plugin version 39.0.3
• Dart plugin version 191.8423
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)

[√] VS Code (version 1.38.1)
• VS Code at C:\Users\camer\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.4.1

[!] Connected device
! No devices available

! Doctor found issues in 1 category.

In this case I had no devices attached, but Android Studio shows "Loading..." in the devices dropdown for the flutter plugin. I get the same behaviour with a Pixel 2 XL attached. Running flutter run works as expected.

EDIT: I tested installing IntelliJ IDEA and also had the same problem.

image

New flutter doctor -v output:

[√] Flutter (Channel beta, v1.9.1+hotfix.3, on Microsoft Windows [Version 10.0.18990.1], locale en-GB)
    • Flutter version 1.9.1+hotfix.3 at C:\src\flutter
    • Framework revision a72edc2706 (2 days ago), 2019-09-25 15:41:01 -0700
    • Engine revision b863200c37
    • Dart version 2.5.0

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at C:\Users\camer\Android
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = C:\Users\camer\Android
    • Java binary at: C:\Users\camer\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\191.5791312\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
    • All Android licenses accepted.

[√] Android Studio (version 3.5)
    • Android Studio at C:\Users\camer\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\191.5791312
    • Flutter plugin version 39.0.3
    • Dart plugin version 191.8423
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)

[√] IntelliJ IDEA Ultimate Edition (version 2019.2)
    • IntelliJ at C:\Users\camer\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\192.6817.14
    • Flutter plugin version 39.0.5
    • Dart plugin version 192.6817.14

[√] VS Code (version 1.38.1)
    • VS Code at C:\Users\camer\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.4.1

[√] Connected device (1 available)
    • Pixel 2 XL • 711KPMZ0833835 • android-arm64 • Android 10 (API 29)

• No issues found!

and flutter devices:

1 connected device:

Pixel 2 XL • 711KPMZ0833835 • android-arm64 • Android 10 (API 29)
modified the milestones: M40, M41 on Sep 30, 2019
stevemessick

stevemessick commented on Oct 28, 2019

@stevemessick
Member

I have not been able to duplicate this problem on either Mac or Windows. However, I think #4014 will fix it. Hopefully, we will get that PR into the M41 release.

39 remaining items

devmakovicz

devmakovicz commented on Jun 22, 2020

@devmakovicz

It's seem to me that VSCode can run without any issues related to devices. The bug is belong to JetBrains's IDE. Both Android Studio and Intellij have this problem. It took me the whole afternoon to find solution.

fly-qp

fly-qp commented on Jun 22, 2020

@fly-qp

Hello
Finaly I solved my problem when I install version 1.17.3 see in this link
https://flutter.dev/docs/development/tools/sdk/releases?tab=macos
**I dont trust to Flutter team now... I lost a big times **

I save this version until he solved this problem.

Also works for me. I was trying too fix this issue for 5 days now. Problem after updating android studio. Problem really need to be solved!!

Andrauss

Andrauss commented on Jun 22, 2020

@Andrauss

Hello
Finaly I solved my problem when I install version 1.17.3 see in this link
https://flutter.dev/docs/development/tools/sdk/releases?tab=macos
**I dont trust to Flutter team now... I lost a big times **

I save this version until he solved this problem.

This solved for me.

saaasaab

saaasaab commented on Jun 22, 2020

@saaasaab

Hello
Finaly I solved my problem when I install version 1.17.3 see in this link
https://flutter.dev/docs/development/tools/sdk/releases?tab=macos
**I dont trust to Flutter team now... I lost a big times **
I save this version until he solved this problem.

This solved for me.

Thank you. This solved the problem. I had been struggling with this for the past three days.

yasaracar

yasaracar commented on Jun 22, 2020

@yasaracar

Hello
Finaly I solved my problem when I install version 1.17.3 see in this link
https://flutter.dev/docs/development/tools/sdk/releases?tab=macos
**I dont trust to Flutter team now... I lost a big times **

I save this version until he solved this problem.

Thank you, fixed it for me as well

Jijnyasa

Jijnyasa commented on Jun 23, 2020

@Jijnyasa

Thank you, fixed it for me as well

muhrahmatullah

muhrahmatullah commented on Jun 25, 2020

@muhrahmatullah

it is fixed in 1.17.3 but got the error again in 1.17.4

saturov

saturov commented on Jun 25, 2020

@saturov

Still experience this error. Very annoying.

`[✓] Flutter (Channel dev, 1.19.0-5.0.pre, on Mac OS X 10.15.5 19F101, locale ru-RU)
• Flutter version 1.19.0-5.0.pre at /Users/saturov/Library/flutter
• Framework revision c264b70ec3 (2 weeks ago), 2020-06-08 09:27:34 -0700
• Engine revision c7f9725521
• Dart version 2.9.0 (build 2.9.0-13.0.dev 87c5e3612b)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Users/saturov/Library/Android/sdk
• Platform android-29, build-tools 29.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.5, Build version 11E608c
• CocoaPods version 1.9.1

[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 46.0.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
`

vinipx

vinipx commented on Jun 25, 2020

@vinipx

Alternatively, according to official documentation you can:

Terminal/Console:

  1. flutter channel- check if you are in Stable version
  2. If not, please run flutter channel stable
  3. Then -> flutter upgrade

Open Android Studio -> Go to Terminal tab :

  1. flutter emulators
  2. flutter emulators --launch {yourEmulator} - replace {yourEmulator} by your emulator config
mariolejom

mariolejom commented on Jun 26, 2020

@mariolejom

flutter downgrade to 1.17.3 was the solution for me.

ghost
hdralexandru

hdralexandru commented on Jun 26, 2020

@hdralexandru

Simply just downgrading to flutter 1.17.3 worked for me too!

Configuration:

Android Studio 4.0 Build #AI-193.6911.18.40.6514223, built on May 20, 2020,
macOS Catalina 10.15.5

mludovico

mludovico commented on Jun 26, 2020

@mludovico

After multiple attempts the only one that solved was downgrading to 1.17 despite it seems to be an issue with Android Studio as for VSCode still working with the last version.

MacOS High Sierra 10.13.6
Android Studio 4.0

helin24

helin24 commented on Jun 26, 2020

@helin24
Member

This is fixed in the latest flutter-intellij plugin version, 47.0.3

If upgrading to the latest plugin version does not fix your issue, please open a separate issue.

locked as resolved and limited conversation to collaborators on Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

    Participants

    @pq@devoncarew@ph55@manishh@saturov

    Issue actions

      Android Studio device list shows "loading" and no devices connected · Issue #3892 · flutter/flutter-intellij