Android Studio device list shows "loading" and no devices connected
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:

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

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

What is going wrong?
Do you still see this problem after updating everything to latest (AS, plugin, SDK)?
having the same problem with latest AS & Plugins
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!
We'll investigate and see if we can repro/
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.

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)
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.
Speculatively closing as fixed by https://github.com/flutter/flutter-intellij/pull/4014.
Issue still exists:

[✓] Flutter (Channel master, 1.20.0-1.0.pre.55, on Mac OS X 10.15.5 19F101, locale en-IL)
• Flutter version 1.20.0-1.0.pre.55 at /usr/local/lib/flutter
• Framework revision 3dad0a2930 (70 minutes ago), 2020-06-15 12:00:36 -0700
• Engine revision 965fbbed17
• Dart version 2.9.0 (build 2.9.0-14.0.dev 2b917f5b6a)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
• Android SDK at /Users/sasa/Library/Android/sdk
• Platform android-30, build-tools 30.0.0
• ANDROID_HOME = /Users/sasa/Library/Android/sdk
• ANDROID_SDK_ROOT = /Users/sasa/Library/Android/sdk
• 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.3
[✓] 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)
[✓] IntelliJ IDEA Community Edition (version 2020.1.2)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 46.0.3
• Dart plugin version 201.7846.93
[✓] VS Code (version 1.46.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.11.0
[✓] Connected device (1 available)
• iPhone SE (2nd generation) • B083870D-9BBC-4CA7-B8A4-55A4F5145258 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-5 (simulator)
• No issues found!
I've noticed this lately, too. It seems to be intermittent.
I can repro the issue by creating a new project. Closing and re-opening it (without shutting down Android Studio) causes the device list to be updated, most of the time. Quitting and restarting Android Studio with the project open frequently causes the list to never populate.
cc @devoncarew
I wonder if there's a new race condition? Or an exception being thrown by the device daemon? I've seen this as well, and have been able to work around the issue by restarting the flutter daemon process (via the IntelliJ action). cc @helin24
Seeing this here too FWIW. Happy to test any fixes.
and have been able to work around the issue by restarting the flutter daemon process
@devoncarew same, fixed by restarting daemon.
I can take a look, thanks for the notes.
Hy, i'm having the same issue here. Mac pro, device list stuck on Loading... while iOS emulator is already open.
Hy, i'm having the same issue here. Mac pro, device list stuck on Loading... while iOS emulator is already open.
I just merged a fix for this problem, but in the meantime you can try closing and reopening the project (without restarting Android Studio / IntelliJ in between).
I had the same problem. Option 1:
- Close the emulator
- Close the project
- Re-open the project -> Devices should be available
Option 2
- Close emulator
- Close project
- Invalidate Caches & Restart
- Open project -> Devices are loaded and available
I also have this problem, and later I solved it by switching Flutter channels, I hope to help you.
Facing same problem, no emulator open but list showing "Loading....", worse still unable to run app through InteliJ Idea IDE saying 'Device not connected' - although device is shown and flutter doctor can find it as well.
This was working fine few hours ago until flutter update.
Facing same problem, no emulator open but list showing "Loading....", worse still unable to run app through InteliJ Idea IDE saying 'Device not connected' - although device is shown and flutter doctor can find it as well.
This was working fine few hours ago until flutter update.
@manishh the second part of this (device not connected) sounds like it may be a separate problem. I recommend trying the steps above (close and re-open project) to fix "Loading...", then potentially opening a new issue for the second problem, with your flutter doctor output and any other relevant system info.
Hello Since I had upgrade Flutter I have alway in my selection device Loading... I am Flutter beginner Could you help me please to solved this problem Thank you a lot