我刚刚更新到Android Studio 4.1,并且在启动时引发了以下问题:
Internal error. Please refer to https://code.google.com/p/android/issues
java.util.concurrent.CompletionException: org.picocontainer.PicoRegistrationException: Key io.flutter.settings.FlutterSettings duplicated
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:618)
at java.util.concurrent.CompletableFuture.uniApplyStage(CompletableFuture.java:628)
at java.util.concurrent.CompletableFuture.thenApply(CompletableFuture.java:1996)
at com.intellij.idea.ApplicationLoader.registerAppComponents(ApplicationLoader.kt:91)
at com.intellij.idea.ApplicationLoader.executeInitAppInEdt(ApplicationLoader.kt:63)
at com.intellij.idea.ApplicationLoader.access$executeInitAppInEdt(ApplicationLoader.kt:1)
at com.intellij.idea.ApplicationLoader$initApplication$1$1.run(ApplicationLoader.kt:355)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: org.picocontainer.PicoRegistrationException: Key io.flutter.settings.FlutterSettings duplicated
at com.intellij.util.pico.DefaultPicoContainer.registerComponent(DefaultPicoContainer.java:119)
at com.intellij.serviceContainer.ComponentManagerImpl.registerServices(ComponentManagerImpl.kt:320)
at com.intellij.serviceContainer.ComponentManagerImpl.registerComponents(ComponentManagerImpl.kt:186)
at com.intellij.serviceContainer.ComponentManagerImpl.registerComponents(ComponentManagerImpl.kt:157)
at com.intellij.idea.ApplicationLoader$registerAppComponents$1.apply(ApplicationLoader.kt:93)
at com.intellij.idea.ApplicationLoader$registerAppComponents$1.apply(ApplicationLoader.kt)
at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:616)
... 20 more
-----
JRE 1.8.0_242-release-1644-b3-6222593 x86_64 by JetBrains s.r.o
/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/jre
我已经按照此处的建议完全卸载了Android Studio:https://stackoverflow.com/a/18458893/471713,并且在全新安装后仍然会抛出错误。我还有其他地方应该看吗?我还安装了其他Jetbrains应用程序,所以不确定与其他应用程序是否存在某种冲突?
答案 0 :(得分:1)
在资源管理器视图设置中启用“显示隐藏的文件和文件夹”。 并按照以下路径删除“颤动风暴”: C:\ Users \ owsb0 \ AppData \ Roaming \ Google \ AndroidStudio4.1 \ plugins
答案 1 :(得分:0)
我在Ubuntu 20.04上遇到了同样的问题,这是我所做的修正:
删除Android Studio
删除文件夹〜/ .AndroidStudio
删除文件夹〜/ .android
删除文件夹〜/ .local / share / Google / AndroidStudio *
删除文件夹〜/ .gradle
删除文件夹〜/ .config / Google / AndroidStudio *
删除Android sdk文件夹(如果不在android-studio目录中)
我也清除了垃圾箱文件夹。重新启动,然后重新安装Android Studio。现在应该可以使用了。
答案 2 :(得分:0)
我在MacOS上也遇到了同样的问题。删除包含插件的市场目录对我来说解决了这个问题。
rm -Rf ~/Library/Application\ Support/AndroidStudio4.0/marketplace/