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.

Flutter Intellij/Android Studio plugin shows "no devices" while cli and VSCode show all devices

See original GitHub issue

Problem

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:

  1. Restart the IDEs
  2. Execute flutter config --android-sdk /path/to/sdk
  3. Execute flutter config --android-studio-dir /path/to/studio
  4. Uninstall and reinstall the plugin
  5. Create a new Android AVD
  6. Start the AVD from the device pull-down menu
  7. Starting the IDE with the AVD already running
  8. 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:28 (9 by maintainers)

github_iconTop GitHub Comments

6reactions
Liyw979commented, Jun 28, 2020

@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

[!] 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 version 1.9.3
3reactions
erlangparasucommented, Jan 17, 2021

Problem: “no devices” on IntelliJ IDEA 2020.3.1 (Ubuntu 18.04)

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.5, on Linux, locale en_US.UTF-8)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.52.1)
[✓] Connected device (2 available)

How to solve: $ flutter config --android-sdk /path/to/dir/android-sdk then restart the IDE

Read more comments on GitHub >

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

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