studio IDE Fatal Errors 报错 SingleRootFileViewProvider

2018-08-02 15:17:00 +08:00
 diy886
有没有老哥遇到这个错误的,一报错很多操作都不行,比如复制黏贴 class,很烦躁
搜了一圈也没找到解决办法
有说用 Invalidate Caches/Restart 重启的,重启一下可能好一会,过一会又不行了

```
Element: class com.intellij.psi.impl.source.xml.XmlFileImpl because: different providers: SingleRootFileViewProvider{myVirtualFile=file://D:/Android/project/Acoin/app/src/main/res/layout/activity_live.xml, content=VirtualFileContent{size=5589}}(42db44f7); SingleRootFileViewProvider{myVirtualFile=file://D:/Android/project/Acoin/app/src/main/res/layout/activity_live.xml, content=VirtualFileContent{size=5589}}(29bc20c)
invalidated at: see attachment
com.intellij.psi.PsiInvalidElementAccessException: Element: class com.intellij.psi.impl.source.xml.XmlFileImpl because: different providers: SingleRootFileViewProvider{myVirtualFile=file://D:/Android/project/Acoin/app/src/main/res/layout/activity_live.xml, content=VirtualFileContent{size=5589}}(42db44f7); SingleRootFileViewProvider{myVirtualFile=file://D:/Android/project/Acoin/app/src/main/res/layout/activity_live.xml, content=VirtualFileContent{size=5589}}(29bc20c)
invalidated at: see attachment
at com.intellij.psi.util.PsiUtilCore.ensureValid(PsiUtilCore.java:502)
at com.intellij.psi.impl.smartPointers.SmartPointerManagerImpl.createSmartPsiElementPointer(SmartPointerManagerImpl.java:78)
at com.intellij.psi.impl.smartPointers.SmartPointerManagerImpl.createSmartPsiElementPointer(SmartPointerManagerImpl.java:69)
at com.intellij.psi.impl.smartPointers.SmartPointerManagerImpl.createSmartPsiElementPointer(SmartPointerManagerImpl.java:64)
at com.intellij.psi.impl.ElementBase$ElementIconRequest.<init>(ElementBase.java:183)
at com.intellij.psi.impl.ElementBase$ElementIconRequest.<init>(ElementBase.java:178)
at com.intellij.psi.impl.ElementBase.computeIcon(ElementBase.java:110)
at com.intellij.psi.impl.ElementBase.getIcon(ElementBase.java:86)
at org.jetbrains.kotlin.idea.KotlinDescriptorIconProvider.getIcon(KotlinDescriptorIconProvider.java:42)
at org.jetbrains.kotlin.idea.completion.BasicLookupElementFactory$createLookupElementUnwrappedDescriptor$name$3.getIcon(BasicLookupElementFactory.kt:169)
at com.intellij.codeInsight.lookup.DefaultLookupItemRenderer._getRawIcon(DefaultLookupItemRenderer.java:74)
at com.intellij.codeInsight.lookup.DefaultLookupItemRenderer.getRawIcon(DefaultLookupItemRenderer.java:48)
at org.jetbrains.kotlin.idea.completion.BasicLookupElementFactory$withIconFromLookupObject$1.renderElement(BasicLookupElementFactory.kt:338)
at com.intellij.codeInsight.lookup.LookupElementDecorator.renderElement(LookupElementDecorator.java:83)
at org.jetbrains.kotlin.idea.completion.LookupElementFactory$boldIfImmediate$1.renderElement(LookupElementFactory.kt:284)
at com.intellij.codeInsight.lookup.LookupElementDecorator.renderElement(LookupElementDecorator.java:83)
at com.intellij.codeInsight.lookup.LookupElementDecorator.renderElement(LookupElementDecorator.java:83)
at com.intellij.codeInsight.lookup.impl.LookupCellRenderer.getListCellRendererComponent(LookupCellRenderer.java:150)
at com.intellij.codeInsight.lookup.impl.LookupImpl.updateListHeight(LookupImpl.java:454)
at com.intellij.codeInsight.lookup.impl.LookupImpl.updateList(LookupImpl.java:431)
at com.intellij.codeInsight.lookup.impl.LookupImpl.refreshUi(LookupImpl.java:1141)
at com.intellij.codeInsight.lookup.impl.LookupImpl.resort(LookupImpl.java:257)
at com.intellij.codeInsight.lookup.impl.LookupUi.updateSorting(LookupUi.java:224)
at com.intellij.codeInsight.lookup.impl.LookupUi.<init>(LookupUi.java:116)
at com.intellij.codeInsight.lookup.impl.LookupImpl.showLookup(LookupImpl.java:706)
at com.intellij.codeInsight.completion.CompletionProgressIndicator.updateLookup(CompletionProgressIndicator.java:395)
at com.intellij.codeInsight.completion.CompletionProgressIndicator.access$000(CompletionProgressIndicator.java:92)
at com.intellij.codeInsight.completion.CompletionProgressIndicator$1.run(CompletionProgressIndicator.java:106)
at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:337)
at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:327)
at com.intellij.util.ui.update.MergingUpdateQueue.lambda$flush$1(MergingUpdateQueue.java:277)
at com.intellij.util.ui.UIUtil.invokeAndWaitIfNeeded(UIUtil.java:2816)
at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:288)
at com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:246)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:246)
at com.intellij.util.Alarm$Request.runSafely(Alarm.java:417)
at com.intellij.util.Alarm$Request.access$700(Alarm.java:344)
at com.intellij.util.Alarm$Request$1.run(Alarm.java:384)
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)

```
10252 次点击
所在节点    Android
1 条回复
CrisTao
2018-08-03 11:00:06 +08:00
备份配置,重装

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/476288

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX