0

当我尝试在工具 > Firebase 中打开 Firebase 助手时,会出现 IDE 错误。我已经尝试重新安装此工具所需的 Google 存储库,重新激活 firebase 插件,还重新安装了 Android Studio(尽管没有删除所有用户设置)。

Android Studio 3.1.3
Build #AI-173.4819257, built on June 4, 2018
JRE: 1.8.0_152-release-1024-b02 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

IDE 错误:插件Firebase 服务中的异常。片刻之前。自上次清除后出现 2 次。未读。禁用插件。

null
java.util.NoSuchElementException
    at com.google.common.collect.Iterators$1.next(Iterators.java:81)
    at com.google.services.firebase.DependencyStateManager.getDependencyState(DependencyStateManager.java:60)
    at com.google.services.firebase.DependencyStateManager.init(DependencyStateManager.java:109)
    at com.android.tools.idea.assistant.view.StatefulButton.<init>(StatefulButton.java:122)
    at com.android.tools.idea.assistant.view.TutorialStep.<init>(TutorialStep.java:106)
    at com.android.tools.idea.assistant.view.TutorialCard.redraw(TutorialCard.java:153)
    at com.android.tools.idea.assistant.view.TutorialCard.<init>(TutorialCard.java:90)
    at com.android.tools.idea.assistant.view.FeaturesPanel.<init>(FeaturesPanel.java:84)
    at com.android.tools.idea.assistant.AssistSidePanel.<init>(AssistSidePanel.java:81)
    at com.android.tools.idea.assistant.AssistToolWindowFactory.createToolWindowContent(AssistToolWindowFactory.java:37)
    at com.android.tools.idea.assistant.OpenAssistSidePanelAction.lambda$openWindow$0(OpenAssistSidePanelAction.java:59)
    at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:315)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:424)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:407)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
    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:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:822)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:650)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:366)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    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)
4

1 回答 1

1

快速搜索提出了以下过程来解决问题:

  • 转到设置 > 插件。

  • 删除所有 Firebase 插件。

  • 重启安卓工作室。

  • 返回设置 > 插件。

  • 再次启用 Firebase 插件。

  • 重启安卓工作室。

于 2018-07-31T05:31:54.433 回答