Can't run/find Android Device File Explorer on IntelliJ Ultimate
4 人关注
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
请先登录再写评论。
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?
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
Do you have "Open this device in the Device File Explorer" button in "Actions" in Device Manager?
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.
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.
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.
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?
That's correct.
Here's the log:
https://gist.github.com/GabrielSousa02/376ca3a9cc73506f9b4d768ff7f978fa
Thanks! No errors in log. Is it reproducible with some newly created emulator? Could you please try to temporarily disable custom plugins:
?
So, I tested on a newly created emulator and again, nothing happened. I'll deactivate the plugins and try it again.
All plugins deactivated, still doesnt work.
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?
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
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.
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?
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).
It should be fixed by the latest android plugin merge in 2023.2 IDE version.
Great! Do you know when will it come out?
Stable version release is planned on the end of July.
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!
No, nothing is needed. Just let me know if the issue still be reproducible in 2023.2 version
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.
Any exceptions in idea.log?
I checked it on my system and Device Explorer works fine:
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...
Thanks! We'll be waiting for a feedback.
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.
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.
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
```
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?
Ooh. seems to work in a pure “My Application” android project: