Open xrigau opened 8 months ago
@xrigau Android Studio by default boots with a JDK version that doesn't support webviews, but this can be changed by using the "Search All" menu (magnifying glass icon in the upper right), selecting "Choose boot Java runtime for the IDE", and then selecting a version like in the screenshot below. The version you see selected there worked for me after initially seeing the same problem you had.
We're working on figuring out whether there's a solution on our side, but before then, I'll be sure that our next release tells the user about this solution immediately
Hey @sestinj thanks for the quick reply! I've tried to change the JDK version a few times but none has worked for me, I've tried the following ones:
For some reason I can't see any JDK version for 17.0.6, the oldest version that I see is for 17.0.7, this is what I see in the bottom of the list:
Do you know how I can download an older version? Thanks!
@xrigau JBR releases can be found here. You'll probably just have to download and then specify the path
Thanks for the link @sestinj !
I've tried again using the same version of the JBR as you pointed: Runtime version: 17.0.6+1-b653.32 aarch64
But unfortunately, I'm still getting the same error:
I've tried also switching to the old UI of Android Studio, but that didn't make a difference. Any help appreciated, happy to help with debugging where I can :)
@xrigau Very sorry to see this, in some searching the most promising lead I've been able to find is this setting. There also seems to have been someone here that had the same issue on a similar setup as you, but it wasn't clear that they found a solution unfortunately.
Which was the older version you tried? I'm currently also on Mac, using Android Studio 2022.3, build AI-223.8836.35.2231.10811636
Any news?
Tried multiple Boot RunTime versions & using Version 0.0.18
. Still getting:
java.lang.IllegalStateException: JCEF is not supported in this env or failed to initialize
@mak1nt0sh I don't have any new solution unfortunately. We will likely stick with using JCEF so this will be a matter of figuring out the workaround on the Android Studio side.
Curious what OS you are on, just in case a pattern shows up?
Android Studio Iguana | 2023.2.1 Canary 14 Build #AI-232.10227.8.2321.11110254, built on November 16, 2023 Runtime version: 17.0.9+0-17.0.9b1000.46-11084592 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 14.1.1
Currently using other GPT plugin - CodeGPT Android Studio has a big community and I'm wondering how the plugin crashes on almost the same JetBrains IDE
Thank you for sharing the OS info, I do notice that you both have macOS 14.1, so there does seem to be a pattern.
Android Studio, though I realize is a hugely popular IDE, doesn't support the webview feature supported by almost all other JetBrains IDEs, which has notoriously caused problems with plugins as common as the markdown viewer. CodeGPT seems to work because it doesn't use the webview feature. Since our usage of the webview is a key part of what lets us share code between both JetBrains and VS Code, and allows much richer UI, it's unlikely that we will switch to using the swing framework and rewrite out side panel.
So unfortunately until Android Studio adds support we'll have to work through this bug.
Hi guys, I faced the same issue on Ubuntu :(
Android Studio Hedgehog | 2023.1.1 Patch 2 Build #AI-231.9392.1.2311.11330709, built on January 19, 2024 Runtime version: 17.0.7+0-17.0.7b1000.6-10550314 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Linux 6.5.0-17-generic GC: G1 Young Generation, G1 Old Generation Memory: 6144M Cores: 16 Registry: ide.browser.jcef.jsQueryPoolSize=200 external.system.auto.import.disabled=true debugger.new.tool.window.layout=true ide.text.editor.with.preview.show.floating.toolbar=false ide.instant.shutdown=false ide.experimental.ui=true
Non-Bundled Plugins: com.github.continuedev.continueintellijextension (0.0.27) com.robohorse.robopojogenerator (2.4.2) name.kropp.intellij.makefile (231.8109.91) io.kanro.idea.plugin.protobuf (1.7.12)
Current Desktop: ubuntu:GNOME
Also, I found out the same issue on Windows 11.
is there any updates on this track as i am having same issue with my mac pc
I have tried to change jdk of android studio. and manage to get options like history and new conversation plus button but still not working. same plugin in vs code it's working i am using this with lm studio server locally
Update: After changing Runtime JDK studio gives error all time when i first open it. gpu failure some kind of. so i have to make it default again.
I also am having the same issue on Windows 10 :(
✅ I solved this issue by changing the boot java runtime to :
My device and software info: Continue version : 0.0.27
Android Studio Hedgehog | 2023.1.1 Patch 2 Build #AI-231.9392.1.2311.11330709, built on January 19, 2024 Runtime version: 17.0.10+10-b829.26 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Windows 11.0 GC: G1 Young Generation, G1 Old Generation Memory: 2048M Cores: 16
✅ I solved this issue by changing the boot java runtime to :
![]()
My device and software info: Continue version : 0.0.27
Android Studio Hedgehog | 2023.1.1 Patch 2 Build #AI-231.9392.1.2311.11330709, built on January 19, 2024 Runtime version: 17.0.10+10-b829.26 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Windows 11.0 GC: G1 Young Generation, G1 Old Generation Memory: 2048M Cores: 16
Does android studio gives any kind of failure warning when you open android studio ?
✅ I solved this issue by changing the boot java runtime to :
![]()
My device and software info: Continue version : 0.0.27
Android Studio Hedgehog | 2023.1.1 Patch 2 Build #AI-231.9392.1.2311.11330709, built on January 19, 2024 Runtime version: 17.0.10+10-b829.26 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Windows 11.0 GC: G1 Young Generation, G1 Old Generation Memory: 2048M Cores: 16
Does android studio gives any kind of failure warning when you open android studio ?
Before changing the runtime it was giving errors and displaying "Nothing to show" in the continue panel. But after changing the runtime everything is working fine.
I tried all the java runtimes in my list and I still have an empty tool window. There's no option to add an LLM. And I get this message about the GPU process.
Build: AI-231.9392.1.2311.11330709, 202401181853 AI-231.9392.1.2311.11330709, JRE 17.0.10+10-b829.26x64 JetBrains s.r.o., OS Mac OS X(aarch64) v14.2.1, screens 1920.0x1080.0, 3840.0x2160.0; Retina AS: Hedgehog | 2023.1.1 Patch 2 Kotlin plugin: 231-1.9.22-release-704-AS9392.1.2311.11330709 Android Gradle Plugin: 7.3.1 Gradle: 7.4.2 Gradle JDK: JetBrains Runtime version 17.0.10 NDK: from local.properties: (not specified), latest from SDK: 23.1.7779620 CMake: from local.properties: (not specified), latest from SDK: 3.18.1-g262b901, from PATH: (not found) Source: send_feedback_icon```
I tried all the java runtimes in my list and I still have an empty tool window. There's no option to add an LLM. And I get this message about the GPU process.
Build: AI-231.9392.1.2311.11330709, 202401181853 AI-231.9392.1.2311.11330709, JRE 17.0.10+10-b829.26x64 JetBrains s.r.o., OS Mac OS X(aarch64) v14.2.1, screens 1920.0x1080.0, 3840.0x2160.0; Retina AS: Hedgehog | 2023.1.1 Patch 2 Kotlin plugin: 231-1.9.22-release-704-AS9392.1.2311.11330709 Android Gradle Plugin: 7.3.1 Gradle: 7.4.2 Gradle JDK: JetBrains Runtime version 17.0.10 NDK: from local.properties: (not specified), latest from SDK: 23.1.7779620 CMake: from local.properties: (not specified), latest from SDK: 3.18.1-g262b901, from PATH: (not found) Source: send_feedback_icon```
I am getting same error on my mac.
I'm also having trouble with this. I actually attempted to set the boot java runtime
to whatever the latest/newest version was in the dropdown, and now my IntelliJ Ultimate won't boot up anymore! It opens and starts up, but then fails somewhere in the boot process.
Update: there are directions for fixing a disfunctional boot java runtime in the IntelliJ docs here: https://www.jetbrains.com/help/idea/switching-boot-jdk.html#switch-jdk
The following JBR worked for me on Android Studio Iguana 2023.2.1 Patch 1
@elliptic1 I solved with this method: -> Select Find Action from the Help menu -> Enter Registry and select Registry -> Find the ide.browser.jcef.sandbox.enable option in the list that appears and disable it -> Restart
@elliptic1 I solved with this method: -> Select Find Action from the Help menu -> Enter Registry and select Registry -> Find the ide.browser.jcef.sandbox.enable option in the list that appears and disable it -> Restart
![]()
It works for me in Android Studio Iguana | 2023.2.1 Patch 2 on Windows 11.
Yes disabling sandbox in 'Android Studio Iguana | 2023.2.1 Patch 2' on Windows 11 works for me to
CTRL+SHIFT+A
type Choose Boot Java Runtime for the IDE...
ide.browser.jcef.sandbox.enable=false
in 'Help\Edit Custom Properties...'oh god.. disabling sandbox in 'Android Studio Iguana | 2023.2.1 Patch 2' on Windows 11 works for me to
ide.browser.jcef.sandbox.enable=false
A combination of fixes here helped me get running successfully too, so I'm going to post them all together to hopefully save future readers some time.
Switch the Java runtime used for running Android Studio.
Disable the JCEF Sandbox in the registry.
Before submitting your bug report
Relevant environment info
Description
Upon opening the Continue panel in the IDE, the panel is empty and the IDE throws the error attached in the "Log output" section.
To reproduce
Log output