Flutter Intellij/Android Studio plugin shows "no devices" while cli and VSCode show all devices
See original GitHub issueProblem
Both IntelliJ (2020.1C) and Android Studio (4.0) with Flutter Plugin v46 consistently show “no-devices”, even though the flutter devices
and VSCode show all devices (web / Android)
Running on MacOS Catalina 10.15.5
Steps to Reproduce
This is consistent. Things I’ve tried to resolve:
- Restart the IDEs
- Execute
flutter config --android-sdk /path/to/sdk
- Execute
flutter config --android-studio-dir /path/to/studio
- Uninstall and reinstall the plugin
- Create a new Android AVD
- Start the AVD from the device pull-down menu
- Starting the IDE with the AVD already running
- Adding Android SDK to the system path (so
adb
works from anywhere
Logs
flutter config
output:
Settings:
enable-macos-desktop: true (Unavailable)
enable-web: true
android-sdk: /Users/lior/dev/android_sdk
android-studio-dir: /Applications/Android Studio.app
flutter doctor -v
output:
[✓] Flutter (Channel beta, 1.19.0-4.1.pre, on Mac OS X 10.15.5 19F101, locale en-US)
• Flutter version 1.19.0-4.1.pre at /Users/lior/dev/flutter
• Framework revision f994b76974 (11 days ago), 2020-06-09 15:53:13 -0700
• Engine revision 9a28c3bcf4
• Dart version 2.9.0 (build 2.9.0-14.1.beta)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
• Android SDK at /Users/lior/dev/android_sdk
• Platform android-30, build-tools 30.0.0
• ANDROID_SDK_ROOT = /Users/lior/dev/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 installation is incomplete; a full installation is necessary for iOS development.
Download at: https://developer.apple.com/xcode/download/
Or install Xcode via the App Store.
Once installed, run:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
✗ CocoaPods not installed.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To install:
sudo gem install cocoapods
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] 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.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.11.0
[✓] Connected device (2 available)
• Web Server • web-server • web-javascript • Flutter Tools
• Chrome • chrome • web-javascript • Google Chrome 83.0.4103.106
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:28 (9 by maintainers)
Top Results From Across the Web
android - No Devices in VS Code - Flutter - Stack Overflow
In the status bar, VS Code shows, No Device though I connected via USB cable. How to resolve this problem? Do we need...
Read more >Android Virtual Devices Not Visible To Flutter Or Visual Studio Code ...
Flutter Run No Connected Device In this article i will explain how solve ... plugins Flutter Intellij/Android Studio plugin shows no devices while...
Read more >Android Studio and IntelliJ - Flutter documentation
When you connect devices, or start simulators, additional entries appear. Run app without breakpoints. Click the Play icon in the toolbar, or invoke...
Read more >Flutter and the Command Line — a Love Story - Gonçalo Palma
This one is quite explanatory: it shows the flutter logs for the device. But not just the Flutter logs for the current running...
Read more >Flutter Ide - The Same Difference
Logs The Flutter device daemon cannot be started. ... Visual Studio Code or VS Code IDE is a famous editor in the market...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@stevemessick I install xcode and it works! However, I don’t understand why xcode is required to run flutter on my android device. This does not make any sence at all, because I can run flutter in vscode without xcode. Please look into this
@pennzht Please try installing xcode flowing the flutter doctor’s instrution and see if it can work
Problem: “no devices” on IntelliJ IDEA 2020.3.1 (Ubuntu 18.04)
How to solve: $ flutter config --android-sdk /path/to/dir/android-sdk then restart the IDE