Can't run/find Android Device File Explorer on IntelliJ Ultimate

已回答

 

Hi there, I have an Android device running and I can't use the `Android Device Explorer` on IntelliJ Ultimate. It works perfectly on `Android Studio` but it doesn't even show the menu option on IntelliJ. On my MacBook Pro M1 works just fine, but on my Ubuntu 23.04 it doesn't work, I can run the emulator and debug my project, but I can't explore the files inside the device.

Any tips with this?

Below is my about info to provide context of the environment:

IntelliJ IDEA 2023.1.3 (Ultimate Edition)
Build #IU-231.9161.38, built on June 20, 2023
Runtime version: 17.0.7+10-b829.16 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 6.2.0-23-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 16
Registry:
    editor.focus.mode.color.light=a8adbd
    ide.editor.tab.selection.animation=true
    debugger.new.tool.window.layout=true
    documentation.show.toolbar=true
    ide.new.editor.tabs.vertical.borders=true
    documentation.component.enable.highlighting.of.quick.doc.signatures=false
    ide.experimental.ui=true
    ide.balloon.shadow.size=0
    editor.focus.mode.color.dark=a8adbd

Non-Bundled Plugins:
    ru.meanmail.plugin.requirements (2022.4.1)
    Keymap exporter (2.6)
    com.markskelton.one-dark-theme (5.8.0)
    com.crunch42.openapi (1.56)
    de.docs_as_co.intellij.plugin.diagramsnet (0.2.3)
    Key Promoter X (2023.1.0)
    lermitage.intellij.extra.icons (2023.2.6-231)
    AceJump (3.8.14)
    IdeaVIM (2.3.0)
    org.jetbrains.IdeaVim-EasyMotion (1.10)
    com.github.dankinsoid.multicursor (2.0.1)
    indent-rainbow.indent-rainbow (2.1.0)
    String Manipulation (9.9.0)
    com.intellij.mermaid (0.0.12-231)
    PlantUML integration (6.3.0-IJ2022.2)
    Dart (231.9161.14)
    com.jetbrains.plugins.jade (231.8109.91)
    com.chrisrm.idea.MaterialThemeUI (8.6.4)
    io.flutter (74.0.4)
    com.jetbrains.writerside (2023.06.3718)
    zielu.gittoolbox (500.0.10+213)
    mobi.hsz.idea.gitignore (4.5.1)
    com.carbonblack.intellij.rpmspec (2.1.0)
    io.github.mishkun.ideavimsneak (1.2.0)
    com.firsttimeinforever.intellij.pdf.viewer.intellij-pdf-viewer (0.15.0)

Kotlin: 231-1.8.21-IJ9161.38
Current Desktop: ubuntu:GNOME

0

Hello,

Am I got you right that you open the same project on both OSes, but Android Device Explorer is shown on MacOS only? Could you please attach idea.log ("Help | Show Log in...") files from both systems after restarting IDE?

0

That's correct. Since there's a limitation on the type of file and the size of the file, I can't attach the logs here on this comment. Instead I uploaded them both to a GitHub, each on a seperate Gist. Once you're done using it, I'll delete them.

For MacOS log: https://gist.github.com/GabrielSousa02/11254f21f516924efdcd8f3187f11e00

For Ubuntu log: https://gist.github.com/GabrielSousa02/b967744f84284b2135dc75859a0f4646

0

Do you have "Open this device in the Device File Explorer" button in "Actions" in Device Manager? 

0

Negative. There's no such option. Also, the little folder icon, next to the play icon that runs the emulator under de Device Manager tab is "deactivated" and I can't click it. It's grayed out.

0

This button should be available when simulator is running. Could you please attach screenshots from both OSes showing missing/existing option? Probably I misunderstood something.

0

So, this screenshot is from MacOS, but it is identical to the Ubuntu options.

I miss understood what you asked, so my answer was incorrect, I'm sorry.

The button is there, however - on Ubuntu - it doesn't do anything when I click on it. Literally nothing happens.

 

0

So, button with folder is shown on both OSes, but clicking on it while emulator is running works on MacOS only. Could you please attach idea.log just after clicking on folder button on Linux?

0

Thanks! No errors in log. Is it reproducible with some newly created emulator? Could you please try to temporarily disable custom plugins: 

Loaded custom plugins: Pug (ex-Jade) (231.8109.91), PlantUML Integration (6.3.0-IJ2022.2), AceJump (3.8.14), IdeaVim (2.3.0), RPM SPEC File (2.1.0), IdeaVimMulticursor (2.0.1), GitToolBox (500.0.10+213), OpenAPI (Swagger) Editor (1.56), IdeaVim-Sneak (1.2.0), Indent Rainbow (2.1.0), Diagrams.net Integration (0.2.3), Key Promoter X (2023.1.0), Keymap Exporter (2.6), One Dark theme (5.8.0), Writerside (2023.06.3718), Mermaid (0.0.12-231), Dart (231.9161.14), Material Theme UI (8.6.4), Flutter (74.0.4), PDF Viewer (0.15.0), String Manipulation (9.9.0), Extra Icons (2023.2.6-231), IdeaVim-EasyMotion (1.10), .ignore (4.5.1), Requirements (2022.4.1)

?

0

So, I tested on a newly created emulator and again, nothing happened. I'll deactivate the plugins and try it again.

0

All plugins deactivated, still doesnt work.

0

Could you please attach screenshot from "Project Structure | Modules" with fully expanded tree (from Linux)? Have you tried to create new sample android project, create new emulator, run it and open Device Explorer?

0

Hey there... sorry for not replying. It's been busy here the past few days, and I'm back to Neovim, gave up on trying to solve that.

But I can help you debug this.

I did not understand what you want me to take a screenshot of. can you show me on your IntelliJ? I was a bit lost on the interface element names

0

And btw, I did not try to create another project. I created a different emulator and tried to open it, which did not work. But all within the same project.

0

So, you said "It works perfectly on `Android Studio` but it doesn't even show the menu option on IntelliJ". What menu option do you mean? Is it possible to attach screenshot with this option? Am I got it right that this option is shown on MacOS, but doesn't on Linux?

0

I believe I did not express myself very well.

The "Option" I'm referring to is this one:

This screen shot is on my Mac. When I open the same quick navigation menu on Ubuntu (Shift + Shift) and type in "Device" it only gives me 'Device Manager' (just like the above) and this one, right below it:

IntelliJ Ultimate does not show the first highlighted option, like the first screenshot shows.

On AndroidStudio, all three options above are available under the quick menu (Shift + Shift).

0

It should be fixed by the latest android plugin merge in 2023.2 IDE version.

0

Great! Do you know when will it come out?

0

Stable version release is planned on the end of July.

0

Thank you for the help and support!

I'm looking forward for this update. I love JetBrains tools and how things work together smoothly.

Keep up the good work.


Should I close/delete or do something with this topic?

Take care Yaroslav!

0

No, nothing is needed. Just let me know if the issue still be reproducible in 2023.2 version

0

Hey there @..., the new update has some amazing features in it, it's pretty awesome!

However the `Device Explorer` function still not working. I click the folder icon under the `Device Manager` tab and nothing happens.

0

Any exceptions in idea.log?

I checked it on my system and Device Explorer works fine:

0

I am going to re-install IntelliJ to see if it will fix it.

Android Studio works just fine...so I'm using that to manage the files inside the emulator while working on `Ubuntu`. But I wish I had the same environment working on `Ubuntu` as I have on my `Mac`.

I'll let you guys know if re-installing it solved the problem...

0

Thanks! We'll be waiting for a feedback.

0

So, it did not fix it for me yet.

I had one problem when re-installing it from the Toolbox (which I hoped it would not happen), It loaded all from cache. So it was not a clean install, and on top of that it opened as if it had all config loaded from Settings Sync, however it did not load the config as it should, therefore, it pushed to the cloud a set of Settings (that synced with my Mac) that was all wrong and messed up.

After I fixed that, I uninstalled it, then cleared all cached file I could find, and installed again.

That was a clean install, then I finished setting it up, located the SDK folder, it mapped the devices, and then went on to test the access to the Device Explorer and it did not work.

I copyied the log from the moment I Stopped the device, and then Started it again. The folder icon is there, but it's inactive.

 

2023-08-03 12:46:49,027 [ 183453]   INFO - Emulator: Pixel C API 26 - Wait for emulator (pid 193208) 20 seconds to shutdown gracefully before kill;you can set environment variable ANDROID_EMULATOR_WAIT_TIME_BEFORE_KILL(in seconds) to change the default value (20 seconds)

2023-08-03 12:46:49,084 [ 183510]   INFO - Emulator: Pixel C API 26 - Wait for emulator (pid 193208) 20 seconds to shutdown gracefully before kill;you can set environment variable ANDROID_EMULATOR_WAIT_TIME_BEFORE_KILL(in seconds) to change the default value (20 seconds)

2023-08-03 12:46:49,084 [ 183510]   INFO - Emulator: Pixel C API 26 - 

2023-08-03 12:46:49,084 [ 183510]   INFO - Emulator: Pixel C API 26 - Info: Sandboxing disabled by user. ((null):0, (null))

2023-08-03 12:46:50,187 [ 184613]   INFO - Emulator: Pixel C API 26 - Critical: Failed to load https://maps.googleapis.com/maps/api/mapsjs/gen_204?csp_test=true: The 'Access-Control-Allow-Origin' header has a value 'qrc://' that is not equal to the supplied origin. Origin 'qrc://' is therefore not allowed access. (qrc:/html/js/common.js:0, (null))

2023-08-03 12:46:50,870 [ 185296]   WARN - #com.android.tools.idea.streaming.emulator.EmulatorController - android.emulation.control.EmulatorController/streamNotification call failed - UNAVAILABLE: Cancelling all calls

2023-08-03 12:46:50,870 [ 185296]   WARN - #com.android.tools.idea.streaming.emulator.EmulatorController - android.emulation.control.EmulatorController/streamScreenshot call failed - UNAVAILABLE: Cancelling all calls

2023-08-03 12:46:50,871 [ 185297]   WARN - #com.android.tools.idea.streaming.emulator.EmulatorController - android.emulation.control.EmulatorController/setClipboard call failed - UNAVAILABLE: Cancelling all calls

2023-08-03 12:46:50,871 [ 185297]   INFO - #com.android.tools.idea.streaming.emulator.EmulatorController - Disconnected from Pixel C API 26 (5554)

2023-08-03 12:47:09,219 [ 203645]   INFO - #com.android.tools.idea.devicemanager.virtualtab.VirtualDeviceChangeListener - emulator-5554 state changed to OFFLINE

2023-08-03 12:47:09,220 [ 203646]   INFO - #com.android.adblib.tools.debugging.impl.JdwpProcessTrackerImpl - JDWP tracker services ended with expected EOF exception, retrying

2023-08-03 12:47:09,220 [ 203646]   INFO - #com.android.sdklib.internal.avd.AvdManager - /home/gabriels/.android/avd/Pixel_C_API_31.avd/hardware-qemu.ini.lock not found for Pixel_C_API_31

2023-08-03 12:47:09,220 [ 203646]   INFO - #com.android.sdklib.internal.avd.AvdManager - /home/gabriels/.android/avd/Pixel_C_API_31.avd/userdata-qemu.img.lock not found for Pixel_C_API_31

2023-08-03 12:47:09,220 [ 203646]   WARN - #com.android.tools.idea.avdmanager.AvdManagerConnection - Unable to determine if Pixel_C_API_31 is online, assuming it's not

2023-08-03 12:47:09,335 [ 203761]   INFO - Emulator: Pixel C API 26 - Process finished with exit code 137 (interrupted by signal 9: SIGKILL)

2023-08-03 12:47:09,335 [ 203761] SEVERE - Emulator: Pixel C API 26 - Emulator terminated with exit code 137

java.lang.Throwable: Emulator terminated with exit code 137

at com.intellij.openapi.diagnostic.Logger.error(Logger.java:370)

at com.android.tools.idea.avdmanager.EmulatorProcessHandler$ConsoleListener.onTextAvailable(EmulatorProcessHandler.kt:89)

at com.intellij.execution.process.ProcessHandler$2.onTextAvailable(ProcessHandler.java:289)

at com.intellij.execution.process.ProcessHandler.notifyTextAvailable(ProcessHandler.java:220)

at com.intellij.execution.process.ProcessTerminatedListener.processTerminated(ProcessTerminatedListener.java:56)

at com.intellij.execution.process.ProcessHandler$2.processTerminated(ProcessHandler.java:259)

at com.intellij.execution.process.ProcessHandler.lambda$notifyTerminated$2(ProcessHandler.java:204)

at com.intellij.execution.process.ProcessHandler$TasksRunner.execute(ProcessHandler.java:322)

at com.intellij.execution.process.ProcessHandler.notifyTerminated(ProcessHandler.java:187)

at com.intellij.execution.process.ProcessHandler.notifyProcessTerminated(ProcessHandler.java:183)

at com.intellij.execution.process.BaseProcessHandler.onOSProcessTerminated(BaseProcessHandler.java:59)

at com.intellij.execution.process.BaseOSProcessHandler$1.lambda$startNotified$0(BaseOSProcessHandler.java:85)

at com.intellij.execution.process.ProcessWaitFor.lambda$new$0(ProcessWaitFor.java:45)

at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:218)

at com.intellij.execution.process.ProcessWaitFor.lambda$new$1(ProcessWaitFor.java:23)

at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)

at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)

at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)

at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)

at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)

at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)

at java.base/java.lang.Thread.run(Thread.java:833)

2023-08-03 12:47:09,336 [ 203762] SEVERE - Emulator: Pixel C API 26 - IntelliJ IDEA 2023.2  Build #IU-232.8660.185

2023-08-03 12:47:09,336 [ 203762] SEVERE - Emulator: Pixel C API 26 - JDK: 17.0.7; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.

2023-08-03 12:47:09,336 [ 203762] SEVERE - Emulator: Pixel C API 26 - OS: Linux

2023-08-03 12:47:09,470 [ 203896]   INFO - #com.android.tools.idea.devicemanager.virtualtab.VirtualDeviceChangeListener - emulator-5554 disconnected

2023-08-03 12:47:09,471 [ 203897]   INFO - #com.android.tools.idea.adb.processnamemonitor.ProcessNameMonitorService - Removing emulator-5554

2023-08-03 12:47:11,873 [ 206299]   INFO - #io.flutter.run.daemon.DeviceDaemon - flutter device daemon #1: Error 1 retrieving device properties for Android SDK built for x86:

2023-08-03 12:47:11,873 [ 206299]   INFO - #io.flutter.run.daemon.DeviceDaemon - flutter device daemon #1: adb: device 'emulator-5554' not found




2023-08-03 12:47:43,736 [ 238162]   INFO - #com.android.tools.idea.devicemanager.DeviceManagerAndroidDebugBridge - []

2023-08-03 12:47:43,843 [ 238269]   INFO - #com.android.sdklib.internal.avd.AvdManager - /home/gabriels/.android/avd/Pixel_C_API_31.avd/hardware-qemu.ini.lock not found for Pixel_C_API_31

2023-08-03 12:47:43,843 [ 238269]   INFO - #com.android.sdklib.internal.avd.AvdManager - /home/gabriels/.android/avd/Pixel_C_API_31.avd/userdata-qemu.img.lock not found for Pixel_C_API_31

2023-08-03 12:47:43,843 [ 238269]   WARN - #com.android.tools.idea.avdmanager.AvdManagerConnection - Unable to determine if Pixel_C_API_31 is online, assuming it's not

2023-08-03 12:47:43,843 [ 238269]   WARN - #com.android.tools.idea.avdmanager.AvdManagerConnection - Unable to determine if Pixel_C_API_26 is online, assuming it's not

2023-08-03 12:47:56,948 [ 251374]   INFO - Emulator: Pixel C API 26 - /home/gabriels/Android/Sdk/emulator/emulator -netdelay none -netspeed full -avd Pixel_C_API_26 -qt-hide-window -grpc-use-token -idle-grpc-timeout 300

2023-08-03 12:47:56,952 [ 251378]   INFO - Emulator: Pixel C API 26 - Android emulator version 32.1.14.0 (build_id 10330179) (CL:N/A)

2023-08-03 12:47:56,952 [ 251378]   INFO - Emulator: Pixel C API 26 - Found systemPath /home/gabriels/Android/Sdk/system-images/android-26/google_apis/x86/

2023-08-03 12:47:57,016 [ 251442]   INFO - Emulator: Pixel C API 26 - Fontconfig warning: "/usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"

2023-08-03 12:47:57,125 [ 251551]   WARN - Emulator: Pixel C API 26 - cannot add library /home/gabriels/Android/Sdk/emulator/qemu/linux-x86_64/lib64/vulkan/libvulkan.so: failed

2023-08-03 12:47:57,184 [ 251610]   INFO - #com.android.tools.idea.devicemanager.virtualtab.VirtualDeviceChangeListener - emulator-5554 connected

2023-08-03 12:47:57,184 [ 251610]   WARN - Emulator: Pixel C API 26 - *** Basic token auth will be deprecated soon, please migrate to using -grpc-use-jwt ***

2023-08-03 12:47:57,188 [ 251614]   INFO - Emulator: Pixel C API 26 - Storing crashdata in: /tmp/android-gabriels/emu-crash.db, detection is enabled

2023-08-03 12:47:57,188 [ 251614]   INFO - Emulator: Pixel C API 26 - Duplicate loglines will be removed, if you wish to see each indiviudal line launch with the -log-nofilter flag.

2023-08-03 12:47:57,188 [ 251614]   INFO - Emulator: Pixel C API 26 - added library /home/gabriels/Android/Sdk/emulator/lib64/vulkan/libvulkan.so

2023-08-03 12:47:57,188 [ 251614]   INFO - Emulator: Pixel C API 26 - Started GRPC server at 127.0.0.1:8554, security: Local, auth: +token

2023-08-03 12:47:57,189 [ 251615]   INFO - Emulator: Pixel C API 26 - Advertising in: /run/user/1000/avd/running/pid_230453.ini

2023-08-03 12:47:57,196 [ 251622]   INFO - Emulator: Pixel C API 26 - Setting display: 0 configuration to: 1800x2560, dpi: 320x320

2023-08-03 12:47:57,649 [ 252075]   INFO - #com.android.tools.idea.devicemanager.virtualtab.VirtualDeviceChangeListener - emulator-5554 state changed to ONLINE

2023-08-03 12:47:57,650 [ 252076]   INFO - #com.android.sdklib.internal.avd.AvdManager - /home/gabriels/.android/avd/Pixel_C_API_31.avd/hardware-qemu.ini.lock not found for Pixel_C_API_31

2023-08-03 12:47:57,650 [ 252076]   INFO - #com.android.sdklib.internal.avd.AvdManager - /home/gabriels/.android/avd/Pixel_C_API_31.avd/userdata-qemu.img.lock not found for Pixel_C_API_31

2023-08-03 12:47:57,650 [ 252076]   WARN - #com.android.tools.idea.avdmanager.AvdManagerConnection - Unable to determine if Pixel_C_API_31 is online, assuming it's not

2023-08-03 12:47:57,663 [ 252089]   INFO - #com.android.tools.idea.adb.processnamemonitor.ProcessNameMonitorService - Adding emulator-5554

2023-08-03 12:47:57,960 [ 252386]   WARN - #com.android.tools.idea.streaming.emulator.EmulatorController - android.emulation.control.EmulatorController/getDisplayConfigurations call failed - FAILED_PRECONDITION: The multi-display feature is not available

2023-08-03 12:53:47,265 [ 601691]   INFO - #c.i.i.s.p.i.SharedIndexMainZipStorage - Shared Indexes Storage is opened and empty

2023-08-03 12:53:47,270 [ 601696]   INFO - #c.i.m.l.c.g.GrazieAuthService - Started refreshToken

2023-08-03 12:53:47,272 [ 601698]   INFO - #c.i.m.l.c.g.GrazieAuthService - Starting auth refresher loop

2023-08-03 12:53:48,644 [ 603070]   INFO - #c.i.m.l.c.g.GrazieAuthService - Token is still valid!

 

0

Please try to install/update Android SDK Platform per https://youtrack.jetbrains.com/issue/IDEA-308876/IntelliJ-Android-device-manager-disabled#focus=Comments-27-6772584.0-0.

If the issue persists, please file a bug at https://youtrack.jetbrains.com/newIssue?project=IDEA and attach the logs using Help | Collect Logs and Diagnostic Data to the issue.

See if the issue can be reproduced with the default settings. File | Manage IDE Settings | Restore Default Settings...: https://i.imgur.com/kbrkC7w.png.

0

I see the same thing in community version vs Android studio:

In intellij nothing happens when this is clicked:

Nothing is logged in idea.log or on the stdout from idea.sh

 

In android studio, the device explorer correctly appears

 

 

 

 

 

Intellij version is :

```

IntelliJ IDEA 2023.2.4 (Community Edition)
Build #IC-232.10203.10, built on October 24, 2023
Runtime version: 17.0.8.1+7-b1000.32 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 6.5.8-100.fc37.x86_64
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 8
Registry:
   ide.experimental.ui=true

Non-Bundled Plugins:
   com.intellij.ideolog (222.1.0.0)
   net.sjrx.intellij.plugins.systemdunitfiles (223.230322.126)
   com.github.copilot (1.3.3.3572)
   Key Promoter X (2023.2.0)
   Dart (232.10072.19)
   org.intellij.plugins.hcl (232.8660.88)
   awesome.console (0.1337.12)
   Docker (232.10203.2)
   com.bloc.intellij_generator_plugin (3.4.0)
   DBN (3.4.1710.0)
   PythonCore (232.10203.2)
   com.demonwav.minecraft-dev (2023.2-1.6.10)
   org.intellij.scala (2023.2.27)
   io.flutter (76.2.4)

Kotlin: 232-1.9.0-IJ10203.10
Current Desktop: i3

```

 

android studio version is :

 

```

Android Studio Giraffe | 2022.3.1 Patch 2
Build #AI-223.8836.35.2231.10811636, built on September 14, 2023
Runtime version: 17.0.6+0-17.0.6b829.9-10027231 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 6.5.8-100.fc37.x86_64
GC: G1 Young Generation, G1 Old Generation
Memory: 3072M
Cores: 8
Registry:
   external.system.auto.import.disabled=true
   ide.text.editor.with.preview.show.floating.toolbar=false

Non-Bundled Plugins:
   com.tao.bloc (1.5.0)
   com.github.copilot (1.2.14.2811)
   com.bloc.intellij_generator_plugin (3.4.0)
   Key Promoter X (2023.2.0)
   Dart (223.8977)
   ai.welltested.fluttergpt (1.1.2-SNAPSHOT)
   io.flutter (76.2.2)

Current Desktop: i3

```

0

Tom Does it still occur in https://www.jetbrains.com/idea/nextversion/?

Do you work and the pure Android project? Does it happen in a new hello world (the most basic template) Android project?

0

Ooh. seems to work in a pure “My Application” android project:

 

0

请先登录再写评论。