gpt4 book ai didi

android - 在启动 Android Studio 时抑制空指针异常错误

转载 作者:行者123 更新时间:2023-11-29 19:28:57 24 4
gpt4 key购买 nike

大家好,每当我启动 android studio 时都会遇到这个奇怪的错误空

java.lang.NullPointerException
at com.jetbrains.cidr.lang.workspace.OCWorkspaceManager.getWorkspace(OCWorkspaceManager.java:12)
at com.jetbrains.cidr.lang.symbols.symtable.OCSymbolTablesBuildingActivity.clearAllSymbolDependentCaches(OCSymbolTablesBuildingActivity.java:381)
at com.jetbrains.cidr.lang.symbols.symtable.OCSymbolTablesBuildingActivity.access$400(OCSymbolTablesBuildingActivity.java:47)
at com.jetbrains.cidr.lang.symbols.symtable.OCSymbolTablesBuildingActivity$7.run(OCSymbolTablesBuildingActivity.java:241)
at com.jetbrains.cidr.lang.symbols.symtable.OCSymbolTablesBuildingActivity$14$1.run(OCSymbolTablesBuildingActivity.java:420)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1009)
at com.jetbrains.cidr.lang.symbols.symtable.OCSymbolTablesBuildingActivity$14.run(OCSymbolTablesBuildingActivity.java:416)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:857)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:658)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:386)
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)

我试图弄清楚它的原因是什么以及如何抑制它。

最佳答案

文件>设置>插件

  1. 禁用插件:Android NDK 支持
  2. 重启 Android Studio

但我不知道为什么插件会抛出这个异常

关于android - 在启动 Android Studio 时抑制空指针异常错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40603853/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com