V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
diy886
V2EX  ›  Android

studio IDE Fatal Errors 报错 SingleRootFileViewProvider

  •  
  •   diy886 · 2018-08-02 15:17:00 +08:00 · 9781 次点击
    这是一个创建于 2306 天前的主题,其中的信息可能已经有所发展或是发生改变。
    有没有老哥遇到这个错误的,一报错很多操作都不行,比如复制黏贴 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)

    ```
    1 条回复    2018-08-03 11:00:06 +08:00
    CrisTao
        1
    CrisTao  
       2018-08-03 11:00:06 +08:00
    备份配置,重装
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2811 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 09:31 · PVG 17:31 · LAX 01:31 · JFK 04:31
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.