Can't use Device File Explorer on IntelliJ IDEA 2023.3.6
I recently upgraded to IntelliJ 2023.3.6 from 2022.2 (not sure which point release I was on). Now I cannot use Device File Explorer to browse the file system on my target Android device.
I used to navigate to View > Tool Windows > Device File Explorer to browse the device. ‘Device File Explorer’ no longer appears on this menu. The menu does include ‘Device Explorer’, but when I select that, the Device Explorer pane says “Connect a device via USB cable or run an Android VIrtual Device”. Of course, I do have the Android device connected via USB and I am able to launch the app under development on the attached device (as well as run adb commands from a Windows command prompt).
My working environment:
Windows 10 Enterprise, Version 22H2, OS Build 19045.4170
IntelliJ IDEA 2023.3.6 (Ultimate Edition)
Build #IU-233.15026.9, built on March 21, 2024
Licensed to Siemens AG
Runtime version: 17.0.4.1+1-LTS amd64
VM: OpenJDK 64-Bit Server VM by Azul Systems, Inc.
Windows 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 4068M
Cores: 12
Non-Bundled Plugins:
com.intellij.javafx (1.0.4)
Batch Scripts Support (1.0.13)
com.itcodebox.fxtools.id (1.2.4)
org.jetbrains.android (233.15026.9)
com.android.tools.design (233.13135.106)
org.sonarlint.idea (10.4.2.78113)
com.microsoft.vso.idea (1.162.2)
Kotlin: 233.15026.9-IJ
What do you think the problem is?
Thank you.
请先登录再写评论。
One issue I noticed is that you run IntelliJ IDEA under unsupported Java runtime. See https://intellij-support.jetbrains.com/hc/en-us/articles/206544879 and revert to the default bundled JetBrains Runtime.
Please also try the latest release version (2024.1): https://www.jetbrains.com/idea/download/index.html.
Do you work on a pure Android project, or is it a Flutter project? There is a known issue that Device Explorer is not available for non-android projects.
Serge,
Thanks very much for your quick response.
Are you referring to the JVM that IntelliJ IDEA itself runs on, as distinct from the JVM used for other build tools (e.g. Gradle) and other Java apps that run on the PC? The Azul Systems JVM is the shop standard where I work, so I am not at liberty to replace it; but presumably using IntelliJ's bundled runtime should not affect anything else that uses the Azul Systems JVM.
I don't know what “Flutter” is, so yes it is a pure Android project.
I will try your suggestions, one at a time: I will check whether reverting to IntelliJ IDEA's bundled runtime resolves the issue, and if that doesn't work I will try version 2024.1.
Thanks very much for your time and attention.
I've reverted to the default Java runtime - still can't see the Android device's file system
Then I installed IntelliJ IDEA 2024.1 - still no joy.
This is not a showstopper for me (I can still access the file system and copy files to/from the device using adb shell). But it is functionality that I have relied on in IDEA over many, many versions (since 2017). I'd appreciate any further help in troubleshooting this.
Please file a bug at https://youtrack.jetbrains.com/newIssue?project=IDEA with a sample project to reproduce and the logs attached (Help | Collect Logs and Diagnostic Data).