continue
continue copied to clipboard
IntelliJ Plugin not working in Android Studio
Before submitting your bug report
- [X] I believe this is a bug. I'll try to join the Continue Discord for questions
- [X] I'm not able to find an open issue that reports the same bug
- [X] I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS: macOS 14.1
- Continue: 0.0.14
- IDE: Android Studio Iguana | 2023.2.1 Canary 4. Build #AI-232.9921.47.2321.10809744
- IDE Runtime version: 17.0.8+0-17.0.8b1000.22-10799086 aarch64
- IDE VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
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
- Install the Continue plugin in the IDE
- Restart the IDE
- Open the Continue panel
Log output
java.lang.IllegalStateException: JCEF is not supported in this env or failed to initialize
at com.intellij.ui.jcef.JBCefApp.getInstance(JBCefApp.java:120)
at com.intellij.ui.jcef.JBCefBrowserBase.lambda$new$3(JBCefBrowserBase.java:157)
at com.intellij.util.ObjectUtils.notNull(ObjectUtils.java:121)
at com.intellij.ui.jcef.JBCefBrowserBase.<init>(JBCefBrowserBase.java:157)
at com.intellij.ui.jcef.JBCefBrowser.<init>(JBCefBrowser.java:189)
at com.intellij.ui.jcef.JBCefBrowser.<init>(JBCefBrowser.java:149)
at com.github.continuedev.continueintellijextension.toolWindow.ContinuePluginToolWindowFactory$ContinuePluginWindow$webView$2.invoke(ContinuePluginToolWindowFactory.kt:60)
at com.github.continuedev.continueintellijextension.toolWindow.ContinuePluginToolWindowFactory$ContinuePluginWindow$webView$2.invoke(ContinuePluginToolWindowFactory.kt:59)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at com.github.continuedev.continueintellijextension.toolWindow.ContinuePluginToolWindowFactory$ContinuePluginWindow.getWebView(ContinuePluginToolWindowFactory.kt:59)
at com.github.continuedev.continueintellijextension.toolWindow.ContinuePluginToolWindowFactory$ContinuePluginWindow.getContent(ContinuePluginToolWindowFactory.kt:170)
at com.github.continuedev.continueintellijextension.toolWindow.ContinuePluginToolWindowFactory.createToolWindowContent(ContinuePluginToolWindowFactory.kt:39)
at com.intellij.openapi.wm.impl.ToolWindowImpl.createContentIfNeeded(ToolWindowImpl.kt:554)
at com.intellij.openapi.wm.impl.ToolWindowImpl.scheduleContentInitializationIfNeeded$intellij_platform_ide_impl(ToolWindowImpl.kt:533)
at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.doShowWindow(ToolWindowManagerImpl.kt:1014)
at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.showToolWindowImpl(ToolWindowManagerImpl.kt:951)
at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.activateToolWindow$intellij_platform_ide_impl(ToolWindowManagerImpl.kt:658)
at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.activateToolWindow(ToolWindowManagerImpl.kt:619)
at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.activateToolWindow$default(ToolWindowManagerImpl.kt:613)
at com.intellij.openapi.wm.impl.ToolWindowImpl.activate(ToolWindowImpl.kt:256)
at com.intellij.openapi.wm.ToolWindow.activate(ToolWindow.java:44)
at com.github.continuedev.continueintellijextension.actions.FocusContinueInputAction.actionPerformed(ContinuePluginActions.kt:196)
at com.intellij.openapi.actionSystem.ex.ActionUtil.doPerformActionOrShowPopup(ActionUtil.java:339)
at com.intellij.openapi.keymap.impl.ActionProcessor.performAction(ActionProcessor.java:47)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$myActionProcessor$1.performAction(IdeKeyEventDispatcher.kt:502)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcherKt.doPerformActionInner$lambda$5$lambda$4(IdeKeyEventDispatcher.kt:865)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:94)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcherKt.doPerformActionInner$lambda$5(IdeKeyEventDispatcher.kt:865)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareWithCallbacks(ActionUtil.java:362)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcherKt.doPerformActionInner(IdeKeyEventDispatcher.kt:863)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcherKt.access$doPerformActionInner(IdeKeyEventDispatcher.kt:1)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction$intellij_platform_ide_impl(IdeKeyEventDispatcher.kt:587)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.kt:513)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processActionOrWaitSecondStroke(IdeKeyEventDispatcher.kt:454)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.kt:447)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.kt:309)
at com.intellij.ide.IdeEventQueue.dispatchKeyEvent(IdeEventQueue.kt:617)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:587)
at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:67)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:369)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:368)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:787)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:368)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:363)
at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:992)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:113)
at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:992)
at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$7(IdeEventQueue.kt:363)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:861)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:405)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
@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:
Stacktrace
java.lang.IllegalStateException: JCEF is not supported in this env or failed to initialize
at com.intellij.ui.jcef.JBCefApp.getInstance(JBCefApp.java:120)
at com.intellij.ui.jcef.JBCefBrowserBase.lambda$new$3(JBCefBrowserBase.java:157)
at com.intellij.util.ObjectUtils.notNull(ObjectUtils.java:121)
at com.intellij.ui.jcef.JBCefBrowserBase.<init>(JBCefBrowserBase.java:157)
at com.intellij.ui.jcef.JBCefBrowser.<init>(JBCefBrowser.java:189)
at com.intellij.ui.jcef.JBCefBrowser.<init>(JBCefBrowser.java:149)
at com.github.continuedev.continueintellijextension.toolWindow.ContinuePluginToolWindowFactory$ContinuePluginWindow$webView$2.invoke(ContinuePluginToolWindowFactory.kt:60)
at com.github.continuedev.continueintellijextension.toolWindow.ContinuePluginToolWindowFactory$ContinuePluginWindow$webView$2.invoke(ContinuePluginToolWindowFactory.kt:59)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at com.github.continuedev.continueintellijextension.toolWindow.ContinuePluginToolWindowFactory$ContinuePluginWindow.getWebView(ContinuePluginToolWindowFactory.kt:59)
at com.github.continuedev.continueintellijextension.toolWindow.ContinuePluginToolWindowFactory$ContinuePluginWindow.getContent(ContinuePluginToolWindowFactory.kt:170)
at com.github.continuedev.continueintellijextension.toolWindow.ContinuePluginToolWindowFactory.createToolWindowContent(ContinuePluginToolWindowFactory.kt:39)
at com.intellij.openapi.wm.impl.ToolWindowImpl.createContentIfNeeded(ToolWindowImpl.kt:554)
at com.intellij.openapi.wm.impl.ToolWindowImpl.scheduleContentInitializationIfNeeded$intellij_platform_ide_impl(ToolWindowImpl.kt:533)
at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.doShowWindow(ToolWindowManagerImpl.kt:1014)
at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.showToolWindowImpl(ToolWindowManagerImpl.kt:951)
at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.showToolWindowImpl$default(ToolWindowManagerImpl.kt:937)
at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.registerToolWindow$intellij_platform_ide_impl(ToolWindowManagerImpl.kt:1121)
at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.initToolWindow$intellij_platform_ide_impl(ToolWindowManagerImpl.kt:550)
at com.intellij.toolWindow.ToolWindowSetInitializerKt$registerEpListeners$1.extensionAdded(ToolWindowSetInitializer.kt:238)
at com.intellij.toolWindow.ToolWindowSetInitializerKt$registerEpListeners$1.extensionAdded(ToolWindowSetInitializer.kt:236)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.notifyListeners(ExtensionPointImpl.java:755)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.lambda$registerExtensions$17(ExtensionPointImpl.java:946)
at com.intellij.ide.plugins.DynamicPlugins.loadPluginWithoutProgress$lambda$30(DynamicPlugins.kt:867)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:992)
at com.intellij.ide.plugins.DynamicPlugins.loadPluginWithoutProgress(DynamicPlugins.kt:850)
at com.intellij.ide.plugins.DynamicPlugins.loadPlugin$lambda$27(DynamicPlugins.kt:822)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:186)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:604)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:679)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:635)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:603)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:61)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:173)
at com.intellij.openapi.progress.util.PotemkinProgress.runInSwingThread(PotemkinProgress.java:150)
at com.intellij.ide.plugins.DynamicPlugins.loadPlugin(DynamicPlugins.kt:821)
at com.intellij.ide.plugins.DynamicPlugins.loadPlugin$default(DynamicPlugins.kt:815)
at com.intellij.ide.plugins.DynamicPlugins.loadPlugin(DynamicPlugins.kt)
at com.intellij.ide.plugins.PluginInstaller.installAndLoadDynamicPlugin(PluginInstaller.java:408)
at com.intellij.ide.plugins.newui.MyPluginModel.lambda$apply$0(MyPluginModel.java:172)
at com.intellij.ide.plugins.InstalledPluginsState.trackPluginInstallation(InstalledPluginsState.java:190)
at com.intellij.ide.plugins.newui.MyPluginModel.apply(MyPluginModel.java:171)
at com.intellij.ide.plugins.PluginManagerConfigurable.apply(PluginManagerConfigurable.java:1840)
at com.intellij.openapi.options.ex.ConfigurableWrapper.apply(ConfigurableWrapper.java:191)
at com.intellij.openapi.options.newEditor.ConfigurableEditor.apply(ConfigurableEditor.java:322)
at com.intellij.openapi.options.newEditor.SettingsEditor$5.apply(SettingsEditor.java:206)
at com.intellij.openapi.options.newEditor.SettingsEditor.apply(SettingsEditor.java:433)
at com.intellij.openapi.options.newEditor.SettingsDialog.applyAndClose(SettingsDialog.java:201)
at com.intellij.openapi.options.newEditor.SettingsDialog.doOKAction(SettingsDialog.java:193)
at com.intellij.openapi.ui.DialogWrapper$OkAction.doAction(DialogWrapper.java:1864)
at com.intellij.openapi.ui.DialogWrapper$DialogWrapperAction.actionPerformed(DialogWrapper.java:1818)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2313)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6648)
at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3392)
at java.desktop/java.awt.Component.processEvent(Component.java:6413)
at java.desktop/java.awt.Container.processEvent(Container.java:2266)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5022)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4854)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2802)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4854)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:781)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:730)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:724)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:754)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:752)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:751)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:685)
at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.kt:633)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:588)
at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:67)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:369)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:368)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:787)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:368)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:363)
at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:992)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:992)
at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$7(IdeEventQueue.kt:363)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:861)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:405)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:121)
at java.desktop/java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:191)
at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:236)
at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:234)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at java.desktop/java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:234)
at java.desktop/java.awt.Dialog.show(Dialog.java:1080)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:737)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:462)
at com.intellij.openapi.ui.DialogWrapper.doShow(DialogWrapper.java:1685)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1643)
at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.kt:134)
at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.kt:116)
at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.kt:109)
at com.intellij.ide.actions.ShowPluginManagerAction.actionPerformed(ShowPluginManagerAction.java:36)
at com.intellij.openapi.actionSystem.ex.ActionUtil.doPerformActionOrShowPopup(ActionUtil.java:339)
at com.intellij.ide.actions.GotoActionAction.lambda$performActionImpl$4(GotoActionAction.java:90)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareWithCallbacks(ActionUtil.java:362)
at com.intellij.ide.actions.GotoActionAction.performActionImpl(GotoActionAction.java:89)
at com.intellij.ide.actions.GotoActionAction.lambda$performAction$2(GotoActionAction.java:69)
at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:208)
at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:21)
at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:190)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:861)
at com.intellij.openapi.application.impl.ApplicationImpl$4.run(ApplicationImpl.java:478)
at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:79)
at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:121)
at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:41)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:779)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:730)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:724)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:749)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:685)
at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$10(IdeEventQueue.kt:589)
at com.intellij.openapi.application.impl.ApplicationImpl.runWithoutImplicitRead(ApplicationImpl.java:1485)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:589)
at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:67)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:369)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:368)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:787)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:368)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:363)
at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:992)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:992)
at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$7(IdeEventQueue.kt:363)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:861)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:405)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
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
- OS: MAC SONOMA 14.3
- Continue: 0.0.27
- IDE: Android Studio Hedgehog | 2023.1.1 Patch 2
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 :(
- OS: Windows 10 19045.4046
- Continue: 0.0.27
- IDE: Android Studio Hedgehog | 2023.1.1 Patch 2
✅ 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
Steps to Success
- switch boot Java runtime for IDE to a version 'with JCEF' via
CTRL+SHIFT+A
typeChoose 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.
- In the main menu, go to Help | Find Action or press ⌘Сmd ⇧Shift A.
- Find and select the Choose Boot Java Runtime for the IDE action.
- Select the new desired runtime (I used 17.0.10+7-1000.50-jcef) and click OK.
- Disable the JCEF Sandbox in the registry.
- In the main menu, go to Help | Find Action or press ⌘Сmd ⇧Shift A.
- Find and select the Registry… action.
- Locate the ide.browser.jcef.sandbox.enable setting. Set its value to Disabled (uncheck the box).
- Locate the ide.browser.jcef.gpu.disable setting. Set its value to Enabled (check the box) and click Close.
+1 Would love to try this plugin in android studio
@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
![]()
Thank you so much, after I tried it all afternoon, this method finally works for me.