Device not showing up in VSCode, but detected in flutter

See original GitHub issue

I am trying to debug my project with a real Android device (Mi Mix 2S running Android 9.0).

It works fine when running flutter run, but I cannot find the device in VSCode.

C:\Users\cheng>flutter doctor -v
[√] Flutter (Channel stable, v1.2.1, on Microsoft Windows [Version 10.0.18362.53], locale zh-CN)
    • Flutter version 1.2.1 at C:\Users\cheng\Documents\Software\flutter
    • Framework revision 8661d8aecd (9 weeks ago), 2019-02-14 19:19:53 -0800
    • Engine revision 3757390fa4
    • Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at C:\Users\cheng\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: C:\Users\cheng\Documents\Software\android-studio-preview\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[√] Android Studio (version 3.3)
    • Android Studio at C:\Users\cheng\Documents\Software\android-studio-preview
    • Flutter plugin version 32.0.1
    • Dart plugin version 182.5215
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[√] VS Code (version 1.33.1)
    • VS Code at C:\Users\cheng\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 2.25.1

[√] Connected device (1 available)
    • MIX 2S • 9723ff13 • android-arm64 • Android 9 (API 28)

• No issues found!

However, image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:7
  • Comments:57 (20 by maintainers)

github_iconTop GitHub Comments

67reactions
dumazycommented, Jul 22, 2020

Workaround: I had this issue as well with an iOS device. By disabling and re-enabling the Flutter plugin in VS Code, the issue was gone.

12reactions
DanTupcommented, Apr 20, 2019

I can’t find “No devices” in my status bar, only Flutter version is there.

Make sure you’ve got a .dart file open, and if it still doesn’t appear, please attach a screenshot.

It seems like there may be a big in Flutter here though, but just to get some more info, can you do this:

  • Run flutter devices and confirm your device show up
  • Run flutter daemon -v
  • Once the daemon says it’s connected, paste [{"id":"1","method":"device.enable"}] into the terminal and press <enter> (you should see [{"id":"1"}] printed out)
  • Disconnect your device
  • Wait 10 seconds
  • Reconnected your device

Then paste the full output of all of that here.

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android device is not showing up on VS Code/Android Studio
Go to your terminal and run this command. flutter devices. This will verify if flutter has recognized ...
Read more >
Flutter not detecting my Android phone - May Guo - Medium
After I set up Flutter and got flutter doctor running, I plugged in my Android phone. Neither flutter doctor or VS Code could...
Read more >
iOS : Physical device (iPad) not detected in vs code for flutter ...
iOS : Physical device (iPad) not detected in vs code for flutter but detected and working proper for debugging in Xcode [ Beautify...
Read more >
How to connect device to flutter in vs code - YouTube
How to connect device to flutter in vs code | Connect device flutter visual studio codeAbout this video -In this video we are...
Read more >
Visual Studio Code - Flutter documentation
If you do not see a Flutter version number or device info, your project might not have been detected as a Flutter project....
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