androidflutterintellij-ideaadb

Android Device Recognized by flutter devices but Not Selectable in IntelliJ IDEA


My Android device, connected via ADB, doesn't show up in Intellij IDEA, but when running flutter devices from the command line the device shows up and I can run flutter run to debug the application.

My Android device also states a wireless debugging connection is established.

Android Device doesn't show up

As seen in the top left corner I can't select my device, but it's shown in the device manager, the device mirroring, Android Profiler and logcat also work and running flutter devices returns the following:

flutter devices

flutter doctor also doesn't return any error flutter doctor

The Project SDK is set to Android API 29, Flutter and Intellij are at the latest version.

The IDEA plugins: Android, Android Design Tools, Dart and Flutter are also all up to date.

What I tried:

At this point I have no clue what is causing the problem, but I like to use the debugger in Intellij and not in Firefox.

I don't now at this point what is causing the problem.


Solution

  • Even @Richard Onslow Roper answer wasn't quite the right answer, it directed me on the right path.

    I didn't know what he meant by NATIVE INTELLIJ TERMINAL, if I click on the terminal button on the left bar of my IDE always zsh opened by default. So I gave bash in Intellij a try and bash couldn't recognize the adb command. Turns out I only added the directory of my sdk tools, like adb, to my zshrc. Also echo $PATH did return the same string, bash couldn't recognize adb, but zsh, so I just linked the adb to my /usr/bin with the following command:

    ln -s <pathToPlatformTools>/adb /usr/bin/adb

    Now it works lmao.