Plugin build fails with error "call to AnalyticsSettings before initialization"

Answered

Hi,

When I try to build my Android Studio plugin with

.\gradlew buildPlugin

it fails with the error during the task buildSearchableOptions with this error:

2022-03-09 10:36:30,246 [   1953]  ERROR - nsions.impl.ExtensionPointImpl - call to AnalyticsSettings before initialization
java.lang.RuntimeException: call to AnalyticsSettings before initialization
        at com.android.tools.analytics.AnalyticsSettings.ensureInitialized(AnalyticsSettings.kt:115)
        at com.android.tools.analytics.AnalyticsSettings.runIfAnalyticsSettingsUsable(AnalyticsSettings.kt:93)
        at com.android.tools.analytics.AnalyticsSettings.getUserId(AnalyticsSettings.kt:66)
        at com.android.tools.idea.serverflags.ServerFlagInitializerKt.isOSEnabled(ServerFlagInitializer.kt:84)
        at com.android.tools.idea.serverflags.ServerFlagInitializerKt.access$isOSEnabled(ServerFlagInitializer.kt:1)
        at com.android.tools.idea.serverflags.ServerFlagInitializer$Companion$initializeService$filter$1.invoke(ServerFlagInitializer.kt:65)
        at com.android.tools.idea.serverflags.ServerFlagInitializer$Companion$initializeService$filter$1.invoke(ServerFlagInitializer.kt:65)
        at com.android.tools.idea.serverflags.ServerFlagInitializer$Companion.initializeService(ServerFlagInitializer.kt:103)
        at com.android.tools.idea.serverflags.ServerFlagInitializer$Companion.initializeService(ServerFlagInitializer.kt:41)
        at com.android.tools.idea.serverflags.ServerFlagInitializer.initializeService(ServerFlagInitializer.kt)
        at com.android.tools.idea.startup.AndroidStudioInitializer.customize(AndroidStudioInitializer.java:85)
        at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.lambda$new$0(ActionManagerImpl.java:178)
        at com.intellij.openapi.extensions.impl.ExtensionProcessingHelper.forEachExtensionSafe(ExtensionProcessingHelper.java:34)
        at com.intellij.openapi.extensions.ExtensionPointName.forEachExtensionSafe(ExtensionPointName.java:46)
        at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.<init>(ActionManagerImpl.java:178)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
        at com.intellij.serviceContainer.ConstructorInjectionKt.instantiateUsingPicoContainer(constructorInjection.kt:47)
        at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClassWithConstructorInjection(ComponentManagerImpl.kt:771)
        at com.intellij.serviceContainer.ServiceComponentAdapter.createAndInitialize(ServiceComponentAdapter.kt:49)
        at com.intellij.serviceContainer.ServiceComponentAdapter.doCreateInstance(ServiceComponentAdapter.kt:37)
        at com.intellij.serviceContainer.BaseComponentAdapter.getInstanceUncached(BaseComponentAdapter.kt:110)
        at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:64)
        at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:488)
        at com.intellij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:471)
        at com.intellij.openapi.actionSystem.ActionManager.getInstance(ActionManager.java:30)
        at com.intellij.ui.ListSpeedSearch$MySelectAllAction.<init>(ListSpeedSearch.java:95)
        at com.intellij.ui.ListSpeedSearch.registerSelectAll(ListSpeedSearch.java:35)
        at com.intellij.ui.ListSpeedSearch.<init>(ListSpeedSearch.java:31)
        at com.intellij.application.options.editor.GutterIconsConfigurable.createUIComponents(GutterIconsConfigurable.java:218)
        at com.intellij.application.options.editor.GutterIconsConfigurable.$$$setupUI$$$(GutterIconsConfigurable.java)
        at com.intellij.application.options.editor.GutterIconsConfigurable.<init>(GutterIconsConfigurable.java:48)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
        at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:722)
        at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:781)
        at com.intellij.openapi.options.ConfigurableEP$ClassProducer.createElement(ConfigurableEP.java:440)
        at com.intellij.openapi.options.ConfigurableEP.createConfigurable(ConfigurableEP.java:346)
        at com.intellij.openapi.options.ex.ConfigurableWrapper.createConfigurable(ConfigurableWrapper.java:42)
        at com.intellij.openapi.options.ex.ConfigurableWrapper.wrapConfigurable(ConfigurableWrapper.java:36)
        at com.intellij.openapi.options.ex.ConfigurableWrapper.wrapConfigurable(ConfigurableWrapper.java:24)
        at com.intellij.openapi.options.ex.ConfigurableWrapper$CompositeWrapper.getConfigurables(ConfigurableWrapper.java:310)
        at com.intellij.ide.actions.ShowSettingsUtilImpl.getConfigurables(ShowSettingsUtilImpl.java:71)
        at com.intellij.ide.ui.search.TraverseUIStarter.lambda$startup$0(TraverseUIStarter.java:111)
        at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:303)
        at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
        at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
        at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:969)
        at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:839)
        at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:449)
        at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:808)
        at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448)
        at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:787)
        at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:502)
        at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
2022-03-09 10:36:30,249 [   1956]  ERROR - nsions.impl.ExtensionPointImpl - Android Studio Bumblebee | 2021.1.1 Patch 2  Build #AI-211.7628.21.2111.8193401
2022-03-09 10:36:30,251 [   1958]  ERROR - nsions.impl.ExtensionPointImpl - JDK: 11.0.11; VM: OpenJDK 64-Bit Server VM; Vendor: Oracle Corporation
2022-03-09 10:36:30,251 [   1958]  ERROR - nsions.impl.ExtensionPointImpl - OS: Windows 10
2022-03-09 10:36:30,252 [   1959]  ERROR - nsions.impl.ExtensionPointImpl - Last Action:
2022-03-09 10:36:35,484 [   7191]  ERROR - j.util.ui.EdtInvocationManager - null
java.lang.reflect.InvocationTargetException
        at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1373)
        at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1348)
        at com.intellij.util.ui.EdtInvocationManager$SwingEdtInvocationManager.invokeAndWait(EdtInvocationManager.java:176)
        at com.intellij.util.ui.EdtInvocationManager.invokeAndWaitIfNeeded(EdtInvocationManager.java:152)
        at com.intellij.ide.ui.search.TraverseUIStarter.startup(TraverseUIStarter.java:106)
        at com.intellij.ide.ui.search.TraverseUIStarter.main(TraverseUIStarter.java:91)
        at com.intellij.idea.ApplicationLoader$startApp$8.run(ApplicationLoader.kt:237)
        at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:783)
        at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
Found 114 configurables
        at java.base/java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:610)
        at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1085)
        at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
        at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
        at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.RuntimeException: call to UsageTracker before initialization
        at com.android.tools.analytics.UsageTracker.ensureInitialized(UsageTracker.kt:164)
        at com.android.tools.analytics.UsageTracker.runIfUsageTrackerUsable(UsageTracker.kt:127)
        at com.android.tools.analytics.UsageTracker.log(UsageTracker.kt:146)
        at com.android.tools.idea.updater.configure.SdkUpdaterConfigPanel.<init>(SdkUpdaterConfigPanel.java:246)
        at com.android.tools.idea.updater.configure.SdkUpdaterConfigurable.createComponent(SdkUpdaterConfigurable.java:132)
        at com.intellij.openapi.options.ex.ConfigurableWrapper.createComponent(ConfigurableWrapper.java:169)
        at com.intellij.ide.ui.search.SearchUtil.processConfigurables(SearchUtil.java:75)
        at com.intellij.ide.ui.search.TraverseUIStarter.lambda$startup$0(TraverseUIStarter.java:111)
        at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:303)
        at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
        at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
        at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:969)
        at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:839)
        at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:449)
        at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:808)
        at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448)
        at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:787)
        at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:502)
        at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
2022-03-09 10:36:35,485 [   7192]  ERROR - j.util.ui.EdtInvocationManager - Android Studio Bumblebee | 2021.1.1 Patch 2  Build #AI-211.7628.21.2111.8193401
2022-03-09 10:36:35,485 [   7192]  ERROR - j.util.ui.EdtInvocationManager - JDK: 11.0.11; VM: OpenJDK 64-Bit Server VM; Vendor: Oracle Corporation
2022-03-09 10:36:35,485 [   7192]  ERROR - j.util.ui.EdtInvocationManager - OS: Windows 10
2022-03-09 10:36:35,486 [   7193]  ERROR - j.util.ui.EdtInvocationManager - Last Action:
Searchable options index builder failed
java.util.regex.PatternSyntaxException: Unexpected internal error near index 1
\
        at java.base/java.util.regex.Pattern.error(Pattern.java:2027)
        at java.base/java.util.regex.Pattern.compile(Pattern.java:1788)
        at java.base/java.util.regex.Pattern.<init>(Pattern.java:1428)
        at java.base/java.util.regex.Pattern.compile(Pattern.java:1068)
        at java.base/java.lang.String.replaceAll(String.java:2126)
        at com.intellij.ide.ui.search.TraverseUIStarter.getModuleByPath(TraverseUIStarter.java:337)
        at com.intellij.ide.ui.search.TraverseUIStarter.getModuleByClass(TraverseUIStarter.java:346)
        at com.intellij.ide.ui.search.TraverseUIStarter.startup(TraverseUIStarter.java:155)
        at com.intellij.ide.ui.search.TraverseUIStarter.main(TraverseUIStarter.java:91)
        at com.intellij.idea.ApplicationLoader$startApp$8.run(ApplicationLoader.kt:237)
        at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:783)
        at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
        at java.base/java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:610)
        at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1085)
        at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
        at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
        at java.base/java.lang.Thread.run(Thread.java:829)

The only relevant related resource I found is this issue but it does not help. Any idea?

Regards

 

 

0
5 comments

If your plugin does not have searchable options itself, you can workaround by disabling buildSearchableOptions  task completely in your Gradle script. Alternatively, could you try building against a newer version of AS?

 

TBC

0

Thanks for your answer. Yes I will disable the buildSearchableOptions task for the moment.

I still have errors with newer versions, I tried with Android Studio Chipmunk | 2021.2.1 Beta 3 :

> Task :buildSearchableOptions
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.intellij.ide.ui.laf.darcula.DarculaLaf to field javax.swing.text.html.HTMLEditorKit.DEFAULT_STYLES_KEY
WARNING: Please consider reporting this to the maintainers of com.intellij.ide.ui.laf.darcula.DarculaLaf
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2022-03-09 15:52:45,760 [    978]   WARN - j.internal.DebugAttachDetector - Unable to start DebugAttachDetector, please add `--add-exports java.base/jdk.internal.vm=ALL-UNNAMED` to VM options 
Starting searchable options index builder
An illegal reflective access operation has occurred

Illegal reflective access by com.intellij.ide.ui.laf.darcula.DarculaLaf to field javax.swing.text.html.HTMLEditorKit.DEFAULT_STYLES_KEY

Please consider reporting this to the maintainers of com.intellij.ide.ui.laf.darcula.DarculaLaf

Use --illegal-access=warn to enable warnings of further illegal reflective access operations

All illegal access operations will be denied in a future release

2022-03-09 15:52:48,228 [   3446]   WARN - tor.impl.FontFamilyServiceImpl - Couldn't access required runtime API, will fall back to basic logic of font selection 
2022-03-09 15:52:51,979 [   7197]   WARN - #com.intellij.ui.jcef.JBCefApp - JCEF is manually disabled in headless env via 'ide.browser.jcef.headless.enabled=false' 
2022-03-09 15:52:59,437 [  14655]   WARN - ion.wsl.WslDistributionManager - Failed to run C:\Windows\system32\wsl.exe --list --verbose: {exitCode=-1, timeout=false, cancelled=false, stdout=Windows Subsystem for Linux has no installed distributions.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
, stderr=} 
java.io.IOException: Failed to run C:\Windows\system32\wsl.exe --list --verbose: {exitCode=-1, timeout=false, cancelled=false, stdout=Windows Subsystem for Linux has no installed distributions.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
, stderr=}
    at com.intellij.execution.wsl.WslDistributionManagerImpl.loadInstalledDistributionsWithVersions(WslDistributionManagerImpl.java:78)
    at com.intellij.execution.wsl.WslDistributionManager.loadInstalledDistributions(WslDistributionManager.java:120)
    at com.intellij.execution.wsl.WslDistributionManager.getInstalledDistributions(WslDistributionManager.java:61)
    at git4idea.config.GitExecutableDetector.detectAvailableWsl(GitExecutableDetector.java:200)
    at git4idea.config.GitExecutableDetector.runDetect(GitExecutableDetector.java:106)
    at git4idea.config.GitExecutableDetector.detectExecutable(GitExecutableDetector.java:73)
    at git4idea.config.GitExecutableDetector.lambda$detect$0(GitExecutableDetector.java:64)
    at git4idea.config.GitExecutableManager.runUnderProgressIfNeeded(GitExecutableManager.java:252)
    at git4idea.config.GitExecutableDetector.detect(GitExecutableDetector.java:63)
    at git4idea.config.GitExecutableManager.getDetectedExecutable(GitExecutableManager.java:148)
    at git4idea.config.GitExecutableSelectorPanel$2.run(GitExecutableSelectorPanel.kt:46)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:183)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:705)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:647)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:63)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:170)
    at com.intellij.openapi.progress.util.BackgroundTaskUtil.lambda$execute$8(BackgroundTaskUtil.java:206)
    at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
    at java.base/java.lang.Thread.run(Thread.java:829)
2022-03-09 15:53:01,434 [  16652]   WARN - g.jetbrains.kotlin.idea.script - [KOTLIN_SCRIPTING] extension gradle.kts file type [UNKNOWN] is not registered as Kotlin 
2022-03-09 15:53:01,435 [  16653]   WARN - g.jetbrains.kotlin.idea.script - [KOTLIN_SCRIPTING] extension main.kts file type [UNKNOWN] is not registered as Kotlin 
2022-03-09 15:53:01,435 [  16653]   WARN - g.jetbrains.kotlin.idea.script - [KOTLIN_SCRIPTING] extensions [gradle.kts, main.kts] is about to be registered as Kotlin 
Found 218 configurables
Searchable options index builder failed
java.util.regex.PatternSyntaxException: Unexpected internal error near index 1
\
    at java.base/java.util.regex.Pattern.error(Pattern.java:2027)
    at java.base/java.util.regex.Pattern.compile(Pattern.java:1788)
    at java.base/java.util.regex.Pattern.<init>(Pattern.java:1428)
    at java.base/java.util.regex.Pattern.compile(Pattern.java:1068)
    at java.base/java.lang.String.replaceAll(String.java:2126)
    at com.intellij.ide.ui.search.TraverseUIStarter.getModuleByPath(TraverseUIStarter.java:343)
    at com.intellij.ide.ui.search.TraverseUIStarter.getModuleByClass(TraverseUIStarter.java:352)
    at com.intellij.ide.ui.search.TraverseUIStarter.startup(TraverseUIStarter.java:161)
    at com.intellij.ide.ui.search.TraverseUIStarter.main(TraverseUIStarter.java:93)
    at com.intellij.idea.ApplicationLoader$startApp$3.run(ApplicationLoader.kt:185)
    at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:783)
    at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
    at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1742)
    at java.base/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1728)
    at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
    at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
    at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
    at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
    at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)

> Task :buildSearchableOptions FAILED

Execution failed for task ':buildSearchableOptions'.
> Process 'command 'C:\Program Files\Eclipse Adoptium\jdk-11.0.13.8-hotspot\bin\java.exe'' finished with non-zero exit value -1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

 

and with Android Studio Dolphin | 2021.3.1 Canary 5 :

> Task :buildSearchableOptions
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.intellij.ide.ui.laf.darcula.DarculaLaf to field javax.swing.text.html.HTMLEditorKit.DEFAULT_STYLES_KEY
WARNING: Please consider reporting this to the maintainers of com.intellij.ide.ui.laf.darcula.DarculaLaf
An illegal reflective access operation has occurred

WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Illegal reflective access by com.intellij.ide.ui.laf.darcula.DarculaLaf to field javax.swing.text.html.HTMLEditorKit.DEFAULT_STYLES_KEY

2022-03-09 15:45:32,199 [   1061]   WARN - j.internal.DebugAttachDetector - Unable to start DebugAttachDetector, please add `--add-exports java.base/jdk.internal.vm=ALL-UNNAMED` to VM options 
Please consider reporting this to the maintainers of com.intellij.ide.ui.laf.darcula.DarculaLaf

Use --illegal-access=warn to enable warnings of further illegal reflective access operations

All illegal access operations will be denied in a future release

Starting searchable options index builder
2022-03-09 15:45:34,900 [   3762]  ERROR - nsions.impl.ExtensionPointImpl - Created extension classloader is not equal to plugin's one.
See https://youtrack.jetbrains.com/articles/IDEA-A-65/Plugin-Model#internalignoredependencyviolation
(
  className=com.jetbrains.cmake.settings.CMakeCodeStyleSettingsProvider,
  extensionInstanceClassloader=PluginClassLoader(plugin=PluginDescriptor(name=CIDR Base, id=com.intellij.cidr.base, descriptorPath=plugin.xml, path=~\Favorites\Downloads\android-studio-2021.3.1.5-windows\android-studio\plugins\cidr-base-plugin, version=213.6777.52.2113.8233036, package=null, isBundled=true), packagePrefix=null, instanceId=46, state=active),
  pluginClassloader=PluginClassLoader(plugin=PluginDescriptor(name=Android NDK Support, id=com.android.tools.ndk, descriptorPath=plugin.xml, path=~\Favorites\Downloads\android-studio-2021.3.1.5-windows\android-studio\plugins\android-ndk, version=213.6777.52.2113.8233036, package=null, isBundled=true), packagePrefix=null, instanceId=88, state=active)

com.intellij.diagnostic.PluginException: Created extension classloader is not equal to plugin's one.
See https://youtrack.jetbrains.com/articles/IDEA-A-65/Plugin-Model#internalignoredependencyviolation
(
  className=com.jetbrains.cmake.settings.CMakeCodeStyleSettingsProvider,
  extensionInstanceClassloader=PluginClassLoader(plugin=PluginDescriptor(name=CIDR Base, id=com.intellij.cidr.base, descriptorPath=plugin.xml, path=~\Favorites\Downloads\android-studio-2021.3.1.5-windows\android-studio\plugins\cidr-base-plugin, version=213.6777.52.2113.8233036, package=null, isBundled=true), packagePrefix=null, instanceId=46, state=active),
  pluginClassloader=PluginClassLoader(plugin=PluginDescriptor(name=Android NDK Support, id=com.android.tools.ndk, descriptorPath=plugin.xml, path=~\Favorites\Downloads\android-studio-2021.3.1.5-windows\android-studio\plugins\android-ndk, version=213.6777.52.2113.8233036, package=null, isBundled=true), packagePrefix=null, instanceId=88, state=active)
)
    at com.intellij.serviceContainer.ComponentManagerImpl.createError(ComponentManagerImpl.kt:925)
    at com.intellij.serviceContainer.ComponentManagerImpl.createError(ComponentManagerImpl.kt:56)
    at com.intellij.openapi.extensions.impl.InterfaceExtensionImplementationClassResolver.resolveImplementationClass(InterfaceExtensionImplementationClassResolver.java:34)
    at com.intellij.openapi.extensions.impl.XmlExtensionAdapter.createInstance(XmlExtensionAdapter.java:65)
    at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapter(ExtensionPointImpl.java:489)
    at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapters(ExtensionPointImpl.java:437)
    at com.intellij.openapi.extensions.impl.ExtensionPointImpl.computeExtensionList(ExtensionPointImpl.java:249)
    at com.intellij.openapi.extensions.impl.ExtensionPointImpl.getExtensionList(ExtensionPointImpl.java:243)
    at com.intellij.openapi.extensions.ExtensionPointName.getExtensionList(ExtensionPointName.java:39)
    at com.intellij.psi.codeStyle.CodeStyleSettingsServiceImpl.getCustomCodeStyleSettingsFactories(CodeStyleSettingsServiceImpl.java:63)
    at com.intellij.psi.codeStyle.CustomCodeStyleSettingsManager.initCustomSettings(CustomCodeStyleSettingsManager.java:25)
    at com.intellij.psi.codeStyle.CodeStyleSettings.<init>(CodeStyleSettings.java:101)
    at com.intellij.psi.codeStyle.CodeStyleSettings$DefaultsHolder.<clinit>(CodeStyleSettings.java:62)
    at com.intellij.psi.codeStyle.CodeStyleSettings.getDefaults(CodeStyleSettings.java:1122)
    at com.intellij.psi.codeStyle.AppCodeStyleSettingsManager.enumSettings(AppCodeStyleSettingsManager.java:23)
    at com.intellij.psi.codeStyle.CodeStyleSettingsManager.getStateModificationCount(CodeStyleSettingsManager.java:93)
    at com.intellij.configurationStore.ComponentWithStateModificationTrackerInfo.getCurrentModificationCount(ComponentInfo.kt:70)
    at com.intellij.configurationStore.ComponentWithStateModificationTrackerInfo.<init>(ComponentInfo.kt:72)
    at com.intellij.configurationStore.ComponentInfoKt.createComponentInfo(ComponentInfo.kt:11)
    at com.intellij.configurationStore.ComponentStoreImpl.initComponent(ComponentStoreImpl.kt:113)
    at com.intellij.configurationStore.ComponentStoreWithExtraComponents.initComponent(ComponentStoreWithExtraComponents.kt:48)
    at com.intellij.serviceContainer.ComponentManagerImpl.initializeComponent$intellij_platform_serviceContainer(ComponentManagerImpl.kt:521)
    at com.intellij.serviceContainer.ServiceComponentAdapter.createAndInitialize(ServiceComponentAdapter.kt:51)
    at com.intellij.serviceContainer.ServiceComponentAdapter.doCreateInstance(ServiceComponentAdapter.kt:37)
    at com.intellij.serviceContainer.BaseComponentAdapter.getInstanceUncached(BaseComponentAdapter.kt:113)
    at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:67)
    at com.intellij.serviceContainer.BaseComponentAdapter.getInstance$default(BaseComponentAdapter.kt:60)
    at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:595)
    at com.intellij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:569)
    at com.intellij.openapi.client.ClientAwareComponentManager.getFromSelfOrCurrentSession(ClientAwareComponentManager.kt:37)
    at com.intellij.openapi.client.ClientAwareComponentManager.getService(ClientAwareComponentManager.kt:22)
    at com.intellij.psi.codeStyle.CodeStyleSettingsManager.getInstance(CodeStyleSettingsManager.java:106)
    at com.intellij.psi.impl.source.codeStyle.CodeStyleSchemeImpl.init(CodeStyleSchemeImpl.java:47)
    at com.intellij.psi.impl.source.codeStyle.CodeStyleSchemeImpl.<init>(CodeStyleSchemeImpl.java:40)
    at com.intellij.psi.impl.source.codeStyle.CodeStyleSchemesImpl.getDefaultScheme(CodeStyleSchemesImpl.java:140)
    at com.intellij.psi.impl.source.codeStyle.CodeStyleSchemesImpl.<init>(CodeStyleSchemesImpl.java:40)
    at com.intellij.psi.impl.source.codeStyle.PersistableCodeStyleSchemes.<init>(PersistableCodeStyleSchemes.java:37)
    at com.intellij.psi.impl.source.codeStyle.PersistableCodeStyleSchemes.<init>(PersistableCodeStyleSchemes.java:31)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
    at com.intellij.serviceContainer.ConstructorInjectionKt.instantiateUsingPicoContainer(constructorInjection.kt:47)
    at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClassWithConstructorInjection(ComponentManagerImpl.kt:876)
    at com.intellij.serviceContainer.ServiceComponentAdapter.createAndInitialize(ServiceComponentAdapter.kt:47)
    at com.intellij.serviceContainer.ServiceComponentAdapter.doCreateInstance(ServiceComponentAdapter.kt:37)
    at com.intellij.serviceContainer.BaseComponentAdapter.getInstanceUncached(BaseComponentAdapter.kt:113)
    at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:67)
    at com.intellij.serviceContainer.BaseComponentAdapter.getInstance$default(BaseComponentAdapter.kt:60)
    at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:595)
    at com.intellij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:569)
    at com.intellij.openapi.client.ClientAwareComponentManager.getFromSelfOrCurrentSession(ClientAwareComponentManager.kt:37)
    at com.intellij.openapi.client.ClientAwareComponentManager.getService(ClientAwareComponentManager.kt:22)
    at com.intellij.psi.codeStyle.CodeStyleSchemes.getInstance(CodeStyleSchemes.java:14)
    at com.intellij.application.options.codeStyle.CodeStyleSchemesModel$ProjectScheme.<init>(CodeStyleSchemesModel.java:278)
    at com.intellij.application.options.codeStyle.CodeStyleSchemesModel.<init>(CodeStyleSchemesModel.java:44)
    at com.intellij.application.options.CodeStyleSchemesConfigurable.<init>(CodeStyleSchemesConfigurable.java:40)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
    at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:850)
    at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:886)
    at com.intellij.openapi.project.impl.DefaultProject.instantiateClass(DefaultProject.java:63)
    at com.intellij.openapi.options.ConfigurableEP$ClassProducer.createElement(ConfigurableEP.java:440)
    at com.intellij.openapi.options.ConfigurableEP.createConfigurable(ConfigurableEP.java:346)
    at com.intellij.openapi.options.ex.ConfigurableWrapper.createConfigurable(ConfigurableWrapper.java:43)
    at com.intellij.openapi.options.ex.ConfigurableWrapper.getConfigurable(ConfigurableWrapper.java:119)
    at com.intellij.openapi.options.ex.ConfigurableWrapper.cast(ConfigurableWrapper.java:92)
    at com.intellij.openapi.options.ex.ConfigurableWrapper$CompositeWrapper.getConfigurables(ConfigurableWrapper.java:297)
    at com.intellij.ide.actions.ShowSettingsUtilImpl.getConfigurables(ShowSettingsUtilImpl.java:71)
    at com.intellij.ide.ui.search.TraverseUIStarter.lambda$startup$0(TraverseUIStarter.java:117)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:303)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:891)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:760)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:447)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:818)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:446)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:805)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:498)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
2022-03-09 15:45:34,904 [   3766]  ERROR - nsions.impl.ExtensionPointImpl - Android Studio Dolphin | 2021.3.1 Canary 5  Build #AI-213.6777.52.2113.8233036 
2022-03-09 15:45:34,907 [   3769]  ERROR - nsions.impl.ExtensionPointImpl - JDK: 11.0.13; VM: OpenJDK 64-Bit Server VM; Vendor: Eclipse Adoptium 
2022-03-09 15:45:34,907 [   3769]  ERROR - nsions.impl.ExtensionPointImpl - OS: Windows 10 
2022-03-09 15:45:34,907 [   3769]  ERROR - nsions.impl.ExtensionPointImpl - Last Action:  
2022-03-09 15:45:34,944 [   3806]  ERROR - nsions.impl.ExtensionPointImpl - Created extension classloader is not equal to plugin's one.
See https://youtrack.jetbrains.com/articles/IDEA-A-65/Plugin-Model#internalignoredependencyviolation
(
  className=com.jetbrains.cmake.settings.CMakeLanguageCodeStyleSettingsProvider,
  extensionInstanceClassloader=PluginClassLoader(plugin=PluginDescriptor(name=CIDR Base, id=com.intellij.cidr.base, descriptorPath=plugin.xml, path=~\Favorites\Downloads\android-studio-2021.3.1.5-windows\android-studio\plugins\cidr-base-plugin, version=213.6777.52.2113.8233036, package=null, isBundled=true), packagePrefix=null, instanceId=46, state=active),
  pluginClassloader=PluginClassLoader(plugin=PluginDescriptor(name=Android NDK Support, id=com.android.tools.ndk, descriptorPath=plugin.xml, path=~\Favorites\Downloads\android-studio-2021.3.1.5-windows\android-studio\plugins\android-ndk, version=213.6777.52.2113.8233036, package=null, isBundled=true), packagePrefix=null, instanceId=88, state=active)

com.intellij.diagnostic.PluginException: Created extension classloader is not equal to plugin's one.
See https://youtrack.jetbrains.com/articles/IDEA-A-65/Plugin-Model#internalignoredependencyviolation
(
  className=com.jetbrains.cmake.settings.CMakeLanguageCodeStyleSettingsProvider,
  extensionInstanceClassloader=PluginClassLoader(plugin=PluginDescriptor(name=CIDR Base, id=com.intellij.cidr.base, descriptorPath=plugin.xml, path=~\Favorites\Downloads\android-studio-2021.3.1.5-windows\android-studio\plugins\cidr-base-plugin, version=213.6777.52.2113.8233036, package=null, isBundled=true), packagePrefix=null, instanceId=46, state=active),
  pluginClassloader=PluginClassLoader(plugin=PluginDescriptor(name=Android NDK Support, id=com.android.tools.ndk, descriptorPath=plugin.xml, path=~\Favorites\Downloads\android-studio-2021.3.1.5-windows\android-studio\plugins\android-ndk, version=213.6777.52.2113.8233036, package=null, isBundled=true), packagePrefix=null, instanceId=88, state=active)
)
    at com.intellij.serviceContainer.ComponentManagerImpl.createError(ComponentManagerImpl.kt:925)
    at com.intellij.serviceContainer.ComponentManagerImpl.createError(ComponentManagerImpl.kt:56)
    at com.intellij.openapi.extensions.impl.InterfaceExtensionImplementationClassResolver.resolveImplementationClass(InterfaceExtensionImplementationClassResolver.java:34)
    at com.intellij.openapi.extensions.impl.XmlExtensionAdapter.createInstance(XmlExtensionAdapter.java:65)
    at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapter(ExtensionPointImpl.java:489)
    at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapters(ExtensionPointImpl.java:437)
    at com.intellij.openapi.extensions.impl.ExtensionPointImpl.computeExtensionList(ExtensionPointImpl.java:249)
    at com.intellij.openapi.extensions.impl.ExtensionPointImpl.getExtensionList(ExtensionPointImpl.java:243)
    at com.intellij.openapi.extensions.ExtensionPointName.getExtensionList(ExtensionPointName.java:39)
    at com.intellij.psi.codeStyle.LanguageCodeStyleSettingsProvider.calcSettingPagesProviders(LanguageCodeStyleSettingsProvider.java:385)
    at com.intellij.psi.codeStyle.LanguageCodeStyleSettingsProvider.lambda$getSettingsPagesProviders$2(LanguageCodeStyleSettingsProvider.java:379)
    at java.base/java.util.concurrent.atomic.AtomicReference.updateAndGet(AtomicReference.java:209)
    at com.intellij.psi.codeStyle.LanguageCodeStyleSettingsProvider.getSettingsPagesProviders(LanguageCodeStyleSettingsProvider.java:379)
    at com.intellij.psi.codeStyle.CodeStyleSettingsServiceImpl.getCustomCodeStyleSettingsFactories(CodeStyleSettingsServiceImpl.java:64)
    at com.intellij.psi.codeStyle.CustomCodeStyleSettingsManager.initCustomSettings(CustomCodeStyleSettingsManager.java:25)
    at com.intellij.psi.codeStyle.CodeStyleSettings.<init>(CodeStyleSettings.java:101)
    at com.intellij.psi.codeStyle.CodeStyleSettings$DefaultsHolder.<clinit>(CodeStyleSettings.java:62)
    at com.intellij.psi.codeStyle.CodeStyleSettings.getDefaults(CodeStyleSettings.java:1122)
    at com.intellij.psi.codeStyle.AppCodeStyleSettingsManager.enumSettings(AppCodeStyleSettingsManager.java:23)
    at com.intellij.psi.codeStyle.CodeStyleSettingsManager.getStateModificationCount(CodeStyleSettingsManager.java:93)
    at com.intellij.configurationStore.ComponentWithStateModificationTrackerInfo.getCurrentModificationCount(ComponentInfo.kt:70)
    at com.intellij.configurationStore.ComponentWithStateModificationTrackerInfo.<init>(ComponentInfo.kt:72)
    at com.intellij.configurationStore.ComponentInfoKt.createComponentInfo(ComponentInfo.kt:11)
    at com.intellij.configurationStore.ComponentStoreImpl.initComponent(ComponentStoreImpl.kt:113)
    at com.intellij.configurationStore.ComponentStoreWithExtraComponents.initComponent(ComponentStoreWithExtraComponents.kt:48)
    at com.intellij.serviceContainer.ComponentManagerImpl.initializeComponent$intellij_platform_serviceContainer(ComponentManagerImpl.kt:521)
    at com.intellij.serviceContainer.ServiceComponentAdapter.createAndInitialize(ServiceComponentAdapter.kt:51)
    at com.intellij.serviceContainer.ServiceComponentAdapter.doCreateInstance(ServiceComponentAdapter.kt:37)
    at com.intellij.serviceContainer.BaseComponentAdapter.getInstanceUncached(BaseComponentAdapter.kt:113)
    at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:67)
    at com.intellij.serviceContainer.BaseComponentAdapter.getInstance$default(BaseComponentAdapter.kt:60)
    at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:595)
    at com.intellij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:569)
    at com.intellij.openapi.client.ClientAwareComponentManager.getFromSelfOrCurrentSession(ClientAwareComponentManager.kt:37)
    at com.intellij.openapi.client.ClientAwareComponentManager.getService(ClientAwareComponentManager.kt:22)
    at com.intellij.psi.codeStyle.CodeStyleSettingsManager.getInstance(CodeStyleSettingsManager.java:106)
    at com.intellij.psi.impl.source.codeStyle.CodeStyleSchemeImpl.init(CodeStyleSchemeImpl.java:47)
    at com.intellij.psi.impl.source.codeStyle.CodeStyleSchemeImpl.<init>(CodeStyleSchemeImpl.java:40)
    at com.intellij.psi.impl.source.codeStyle.CodeStyleSchemesImpl.getDefaultScheme(CodeStyleSchemesImpl.java:140)
    at com.intellij.psi.impl.source.codeStyle.CodeStyleSchemesImpl.<init>(CodeStyleSchemesImpl.java:40)
    at com.intellij.psi.impl.source.codeStyle.PersistableCodeStyleSchemes.<init>(PersistableCodeStyleSchemes.java:37)
    at com.intellij.psi.impl.source.codeStyle.PersistableCodeStyleSchemes.<init>(PersistableCodeStyleSchemes.java:31)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
    at com.intellij.serviceContainer.ConstructorInjectionKt.instantiateUsingPicoContainer(constructorInjection.kt:47)
    at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClassWithConstructorInjection(ComponentManagerImpl.kt:876)
    at com.intellij.serviceContainer.ServiceComponentAdapter.createAndInitialize(ServiceComponentAdapter.kt:47)
    at com.intellij.serviceContainer.ServiceComponentAdapter.doCreateInstance(ServiceComponentAdapter.kt:37)
    at com.intellij.serviceContainer.BaseComponentAdapter.getInstanceUncached(BaseComponentAdapter.kt:113)
    at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:67)
    at com.intellij.serviceContainer.BaseComponentAdapter.getInstance$default(BaseComponentAdapter.kt:60)
    at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:595)
    at com.intellij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:569)
    at com.intellij.openapi.client.ClientAwareComponentManager.getFromSelfOrCurrentSession(ClientAwareComponentManager.kt:37)
    at com.intellij.openapi.client.ClientAwareComponentManager.getService(ClientAwareComponentManager.kt:22)
    at com.intellij.psi.codeStyle.CodeStyleSchemes.getInstance(CodeStyleSchemes.java:14)
    at com.intellij.application.options.codeStyle.CodeStyleSchemesModel$ProjectScheme.<init>(CodeStyleSchemesModel.java:278)
    at com.intellij.application.options.codeStyle.CodeStyleSchemesModel.<init>(CodeStyleSchemesModel.java:44)
    at com.intellij.application.options.CodeStyleSchemesConfigurable.<init>(CodeStyleSchemesConfigurable.java:40)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
    at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:850)
    at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:886)
    at com.intellij.openapi.project.impl.DefaultProject.instantiateClass(DefaultProject.java:63)
    at com.intellij.openapi.options.ConfigurableEP$ClassProducer.createElement(ConfigurableEP.java:440)
    at com.intellij.openapi.options.ConfigurableEP.createConfigurable(ConfigurableEP.java:346)
    at com.intellij.openapi.options.ex.ConfigurableWrapper.createConfigurable(ConfigurableWrapper.java:43)
    at com.intellij.openapi.options.ex.ConfigurableWrapper.getConfigurable(ConfigurableWrapper.java:119)
    at com.intellij.openapi.options.ex.ConfigurableWrapper.cast(ConfigurableWrapper.java:92)
    at com.intellij.openapi.options.ex.ConfigurableWrapper$CompositeWrapper.getConfigurables(ConfigurableWrapper.java:297)
    at com.intellij.ide.actions.ShowSettingsUtilImpl.getConfigurables(ShowSettingsUtilImpl.java:71)
    at com.intellij.ide.ui.search.TraverseUIStarter.lambda$startup$0(TraverseUIStarter.java:117)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:303)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:891)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:760)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:447)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:818)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:446)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:805)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:498)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
2022-03-09 15:45:34,945 [   3807]  ERROR - nsions.impl.ExtensionPointImpl - Android Studio Dolphin | 2021.3.1 Canary 5  Build #AI-213.6777.52.2113.8233036 
2022-03-09 15:45:34,945 [   3807]  ERROR - nsions.impl.ExtensionPointImpl - JDK: 11.0.13; VM: OpenJDK 64-Bit Server VM; Vendor: Eclipse Adoptium 
2022-03-09 15:45:34,946 [   3808]  ERROR - nsions.impl.ExtensionPointImpl - OS: Windows 10 
2022-03-09 15:45:34,952 [   3814]  ERROR - nsions.impl.ExtensionPointImpl - Last Action:  
2022-03-09 15:45:35,410 [   4272]   WARN - tor.impl.FontFamilyServiceImpl - Couldn't access required runtime API, will fall back to basic logic of font selection 
2022-03-09 15:45:37,814 [   6676]  ERROR - nsions.impl.ExtensionPointImpl - Created extension classloader is not equal to plugin's one.
See https://youtrack.jetbrains.com/articles/IDEA-A-65/Plugin-Model#internalignoredependencyviolation
(
  className=com.jetbrains.cidr.settings.OCOptionsApplicabilityFilter,
  extensionInstanceClassloader=PluginClassLoader(plugin=PluginDescriptor(name=CIDR Base, id=com.intellij.cidr.base, descriptorPath=plugin.xml, path=~\Favorites\Downloads\android-studio-2021.3.1.5-windows\android-studio\plugins\cidr-base-plugin, version=213.6777.52.2113.8233036, package=null, isBundled=true), packagePrefix=null, instanceId=46, state=active),
  pluginClassloader=PluginClassLoader(plugin=PluginDescriptor(name=Android NDK Support, id=com.android.tools.ndk, descriptorPath=plugin.xml, path=~\Favorites\Downloads\android-studio-2021.3.1.5-windows\android-studio\plugins\android-ndk, version=213.6777.52.2113.8233036, package=null, isBundled=true), packagePrefix=null, instanceId=88, state=active)

com.intellij.diagnostic.PluginException: Created extension classloader is not equal to plugin's one.
See https://youtrack.jetbrains.com/articles/IDEA-A-65/Plugin-Model#internalignoredependencyviolation
(
  className=com.jetbrains.cidr.settings.OCOptionsApplicabilityFilter,
  extensionInstanceClassloader=PluginClassLoader(plugin=PluginDescriptor(name=CIDR Base, id=com.intellij.cidr.base, descriptorPath=plugin.xml, path=~\Favorites\Downloads\android-studio-2021.3.1.5-windows\android-studio\plugins\cidr-base-plugin, version=213.6777.52.2113.8233036, package=null, isBundled=true), packagePrefix=null, instanceId=46, state=active),
  pluginClassloader=PluginClassLoader(plugin=PluginDescriptor(name=Android NDK Support, id=com.android.tools.ndk, descriptorPath=plugin.xml, path=~\Favorites\Downloads\android-studio-2021.3.1.5-windows\android-studio\plugins\android-ndk, version=213.6777.52.2113.8233036, package=null, isBundled=true), packagePrefix=null, instanceId=88, state=active)
)
    at com.intellij.serviceContainer.ComponentManagerImpl.createError(ComponentManagerImpl.kt:925)
    at com.intellij.serviceContainer.ComponentManagerImpl.createError(ComponentManagerImpl.kt:56)
    at com.intellij.openapi.extensions.impl.InterfaceExtensionImplementationClassResolver.resolveImplementationClass(InterfaceExtensionImplementationClassResolver.java:34)
    at com.intellij.openapi.extensions.impl.XmlExtensionAdapter.createInstance(XmlExtensionAdapter.java:65)
    at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapter(ExtensionPointImpl.java:489)
    at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapters(ExtensionPointImpl.java:437)
    at com.intellij.openapi.extensions.impl.ExtensionPointImpl.computeExtensionList(ExtensionPointImpl.java:249)
    at com.intellij.openapi.extensions.impl.ExtensionPointImpl.getExtensionList(ExtensionPointImpl.java:243)
    at com.intellij.openapi.extensions.ExtensionPointName.getExtensionList(ExtensionPointName.java:39)
    at com.intellij.application.options.OptionsApplicabilityFilter.isApplicable(OptionsApplicabilityFilter.java:14)
    at com.intellij.application.options.CodeCompletionConfigurable$createPanel$1.invoke(CodeCompletionConfigurable.kt:123)
    at com.intellij.application.options.CodeCompletionConfigurable$createPanel$1.invoke(CodeCompletionConfigurable.kt:31)
    at com.intellij.ui.dsl.builder.BuilderKt.panel(builder.kt:21)
    at com.intellij.application.options.CodeCompletionConfigurable.createPanel(CodeCompletionConfigurable.kt:109)
    at com.intellij.openapi.options.DslConfigurableBase$panel$1.compute(BoundConfigurable.kt:35)
    at com.intellij.openapi.options.DslConfigurableBase$panel$1.compute(BoundConfigurable.kt:30)
    at com.intellij.openapi.util.ClearableLazyValue.getValue(ClearableLazyValue.java:39)
    at com.intellij.openapi.options.DslConfigurableBase.createComponent(BoundConfigurable.kt:43)
    at com.intellij.openapi.options.ex.ConfigurableWrapper.createComponent(ConfigurableWrapper.java:172)
    at com.intellij.ide.ui.search.SearchUtil.processConfigurables(SearchUtil.java:77)
    at com.intellij.ide.ui.search.TraverseUIStarter.lambda$startup$0(TraverseUIStarter.java:117)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:303)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:891)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:760)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:447)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:818)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:446)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:805)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:498)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
2022-03-09 15:45:37,815 [   6677]  ERROR - nsions.impl.ExtensionPointImpl - Android Studio Dolphin | 2021.3.1 Canary 5  Build #AI-213.6777.52.2113.8233036 
2022-03-09 15:45:37,815 [   6677]  ERROR - nsions.impl.ExtensionPointImpl - JDK: 11.0.13; VM: OpenJDK 64-Bit Server VM; Vendor: Eclipse Adoptium 
2022-03-09 15:45:37,815 [   6677]  ERROR - nsions.impl.ExtensionPointImpl - OS: Windows 10 
2022-03-09 15:45:37,815 [   6677]  ERROR - nsions.impl.ExtensionPointImpl - Last Action:  
2022-03-09 15:45:51,649 [  20511]   WARN - #com.intellij.ui.jcef.JBCefApp - JCEF is manually disabled in headless env via 'ide.browser.jcef.headless.enabled=false' 
Found 216 configurables
Searchable options index builder failed
java.util.regex.PatternSyntaxException: Unexpected internal error near index 1
\
    at java.base/java.util.regex.Pattern.error(Pattern.java:2027)
    at java.base/java.util.regex.Pattern.compile(Pattern.java:1788)
    at java.base/java.util.regex.Pattern.<init>(Pattern.java:1428)
    at java.base/java.util.regex.Pattern.compile(Pattern.java:1068)
    at java.base/java.lang.String.replaceAll(String.java:2126)
    at com.intellij.ide.ui.search.TraverseUIStarter.getModuleByPath(TraverseUIStarter.java:343)
    at com.intellij.ide.ui.search.TraverseUIStarter.getModuleByClass(TraverseUIStarter.java:352)
    at com.intellij.ide.ui.search.TraverseUIStarter.startup(TraverseUIStarter.java:161)
    at com.intellij.ide.ui.search.TraverseUIStarter.main(TraverseUIStarter.java:93)
    at com.intellij.idea.ApplicationLoader$startApp$3.run(ApplicationLoader.kt:190)
    at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:783)
    at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
    at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1742)
    at java.base/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1728)
    at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
    at java.base/java.util.concurrent.ForkJoinPool.awaitQuiescence(ForkJoinPool.java:2984)
    at com.intellij.idea.StartupUtil.start(StartupUtil.java:297)
    at com.intellij.idea.Main.bootstrap(Main.java:140)
    at com.intellij.idea.Main.main(Main.java:83)

> Task :buildSearchableOptions FAILED

Execution failed for task ':buildSearchableOptions'.
> Process 'command 'C:\Program Files\Eclipse Adoptium\jdk-11.0.13.8-hotspot\bin\java.exe'' finished with non-zero exit value -1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

 

0

I'm afraid, there's no workaround for this. Checking further...

0

It seems both issues are coming from Android NDK Support plugin, which is maintained by Google. Please file a bug report  https://developer.android.com/studio/report-bugs

0

Please sign in to leave a comment.