2

此问题特定于旧版本的 ANDROID studio。但对于 Android 0.8.1 不再是问题。我可以完全删除这个问题。

我仍在尝试使用 Android Studio。我刚刚升级到版本 0.2.13,据我了解存在一些升级问题。我与它们搏斗了……但是我遇到了升级前没有的 Button 问题。

Click 事件中的 Button 在“属性”部分给了我这个错误。

Error getting value: ContentElementType: FILE; file:HtmlFile:incognito_mode_start_page.html Boolean.TRUE.equals

在此版本之前,我只需输入我想要调用的 click Handler 即可,不会有任何问题。现在,我什至无法在属性检查器中选择此字段。

我也尝试手动更改 onClick 处理程序...但 AS 会将我的代码切换回“”

这是我到目前为止...

<Button
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="New Button"
    android:id="@+id/button"
    android:layout_alignParentBottom="true"
    android:layout_alignParentRight="true"
    android:onClick="<unset>" />

到目前为止我已经尝试过什么......没有运气,我也尝试重新启动,因为我尝试创建一个新的 ACTIVITY,确认它同时具有类和布局文件。并从那里开始工作......我已经手动将行更改android:onClick="<unset>" />为并在我的代码中android:onClick="doSomething" /> 添加了一个函数。doSomething

////////////////////////////////////////////////我刚刚在startup上注意到这一点...我想这是有关的...

java.lang.AssertionError: ContentElementType: FILE; file: HtmlFile:incognito_mode_start_page.html
    Boolean.TRUE.equals(getUserData(BUILDING_STUB)) = false
    getTreeElement() = Element(FILE)
    vFile instanceof VirtualFileWithId = true
    StubUpdatingIndex.canHaveStub(vFile) = false: java.lang.AssertionError: ContentElementType: FILE; file: HtmlFile:incognito_mode_start_page.html
    Boolean.TRUE.equals(getUserData(BUILDING_STUB)) = false
    getTreeElement() = Element(FILE)
    vFile instanceof VirtualFileWithId = true
    StubUpdatingIndex.canHaveStub(vFile) = false
java.util.concurrent.ExecutionException: java.lang.AssertionError: ContentElementType: FILE; file: HtmlFile:incognito_mode_start_page.html
    Boolean.TRUE.equals(getUserData(BUILDING_STUB)) = false
    getTreeElement() = Element(FILE)
    vFile instanceof VirtualFileWithId = true
    StubUpdatingIndex.canHaveStub(vFile) = false
    at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
    at java.util.concurrent.FutureTask.get(FutureTask.java:83)
    at com.intellij.concurrency.PrioritizedFutureTask.access$301(PrioritizedFutureTask.java:32)
    at com.intellij.concurrency.PrioritizedFutureTask$1.run(PrioritizedFutureTask.java:79)
    at com.intellij.concurrency.PrioritizedFutureTask.run(PrioritizedFutureTask.java:115)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
    at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.AssertionError: ContentElementType: FILE; file: HtmlFile:incognito_mode_start_page.html
    Boolean.TRUE.equals(getUserData(BUILDING_STUB)) = false
    getTreeElement() = Element(FILE)
    vFile instanceof VirtualFileWithId = true
    StubUpdatingIndex.canHaveStub(vFile) = false
    at com.intellij.psi.impl.source.PsiFileImpl.calcStubTree(PsiFileImpl.java:996)
    at com.intellij.psi.stubs.StubProcessingHelperBase.processStubsInFile(StubProcessingHelperBase.java:47)
    at com.intellij.psi.stubs.StubIndexImpl$2.perform(StubIndexImpl.java:245)
    at com.intellij.psi.stubs.StubIndexImpl$2.perform(StubIndexImpl.java:236)
    at com.intellij.util.indexing.ValueContainer.forEach(ValueContainer.java:60)
    at com.intellij.psi.stubs.StubIndexImpl.process(StubIndexImpl.java:236)
    at com.intellij.psi.stubs.StubIndexImpl.get(StubIndexImpl.java:210)
    at com.intellij.psi.stubs.StubIndex.safeGet(StubIndex.java:73)
    at com.intellij.psi.impl.java.stubs.index.JavaFullClassNameIndex.get(JavaFullClassNameIndex.java:48)
    at com.intellij.psi.impl.file.impl.JavaFileManagerBase.findClasses(JavaFileManagerBase.java:133)
    at com.intellij.psi.impl.JavaPsiFacadeImpl$PsiElementFinderImpl.findClasses(JavaPsiFacadeImpl.java:297)
    at com.intellij.psi.impl.JavaPsiFacadeImpl.findClasses(JavaPsiFacadeImpl.java:147)
    at com.intellij.psi.impl.compiled.ClsJavaCodeReferenceElementImpl.resolveClassPreferringMyJar(ClsJavaCodeReferenceElementImpl.java:187)
    at com.intellij.psi.impl.compiled.ClsJavaCodeReferenceElementImpl.resolveElement(ClsJavaCodeReferenceElementImpl.java:182)
    at com.intellij.psi.impl.compiled.ClsJavaCodeReferenceElementImpl.advancedResolveImpl(ClsJavaCodeReferenceElementImpl.java:103)
    at com.intellij.psi.impl.compiled.ClsJavaCodeReferenceElementImpl.access$000(ClsJavaCodeReferenceElementImpl.java:40)
    at com.intellij.psi.impl.compiled.ClsJavaCodeReferenceElementImpl$Resolver.resolve(ClsJavaCodeReferenceElementImpl.java:96)
    at com.intellij.psi.impl.compiled.ClsJavaCodeReferenceElementImpl$Resolver.resolve(ClsJavaCodeReferenceElementImpl.java:90)
    at com.intellij.psi.impl.source.resolve.ResolveCache$2.compute(ResolveCache.java:106)
    at com.intellij.openapi.util.RecursionManager$2.doPreventingRecursion(RecursionManager.java:110)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolve(ResolveCache.java:103)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:131)
    at com.intellij.psi.impl.compiled.ClsJavaCodeReferenceElementImpl.multiResolve(ClsJavaCodeReferenceElementImpl.java:151)
    at com.intellij.psi.impl.compiled.ClsJavaCodeReferenceElementImpl.advancedResolve(ClsJavaCodeReferenceElementImpl.java:141)
    at com.intellij.psi.impl.source.PsiClassReferenceType.resolveGenerics(PsiClassReferenceType.java:140)
    at com.intellij.psi.impl.source.PsiClassReferenceType.resolve(PsiClassReferenceType.java:89)
    at com.intellij.psi.impl.PsiClassImplUtil.resolveClassReferenceList(PsiClassImplUtil.java:905)
    at com.intellij.psi.impl.PsiClassImplUtil.getSupersInner(PsiClassImplUtil.java:776)
    at com.intellij.psi.impl.PsiClassImplUtil.getSupers(PsiClassImplUtil.java:734)
    at com.intellij.psi.impl.compiled.ClsClassImpl.getSupers(ClsClassImpl.java:138)
    at com.intellij.psi.impl.InheritanceImplUtil.isInheritorWithoutCaching(InheritanceImplUtil.java:170)
    at com.intellij.psi.impl.InheritanceImplUtil.isInheritor(InheritanceImplUtil.java:127)
    at com.intellij.psi.impl.InheritanceImplUtil.checkInheritor(InheritanceImplUtil.java:194)
    at com.intellij.psi.impl.InheritanceImplUtil.checkInheritor(InheritanceImplUtil.java:176)
    at com.intellij.psi.impl.InheritanceImplUtil.isInheritorWithoutCaching(InheritanceImplUtil.java:170)
    at com.intellij.psi.impl.InheritanceImplUtil.isInheritor(InheritanceImplUtil.java:127)
    at com.intellij.psi.impl.InheritanceImplUtil.isInheritor(InheritanceImplUtil.java:57)
    at com.intellij.psi.impl.source.PsiClassImpl.isInheritor(PsiClassImpl.java:650)
    at com.intellij.psi.util.InheritanceUtil.isInheritorOrSelf(InheritanceUtil.java:45)
    at com.intellij.psi.impl.ElementPresentationUtil.getClassKindImpl(ElementPresentationUtil.java:135)
    at com.intellij.psi.impl.ElementPresentationUtil.access$000(ElementPresentationUtil.java:36)
    at com.intellij.psi.impl.ElementPresentationUtil$1.compute(ElementPresentationUtil.java:107)
    at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49)
    at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:200)
    at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38)
    at com.intellij.psi.impl.ElementPresentationUtil.getClassKind(ElementPresentationUtil.java:112)
    at com.intellij.psi.impl.ElementPresentationUtil.getFlags(ElementPresentationUtil.java:51)
    at com.intellij.psi.impl.ElementPresentationUtil.createLayeredIcon(ElementPresentationUtil.java:63)
    at com.intellij.psi.impl.PsiClassImplUtil$2.fun(PsiClassImplUtil.java:323)
    at com.intellij.psi.impl.PsiClassImplUtil$2.fun(PsiClassImplUtil.java:314)
    at com.intellij.ui.IconDeferrerImpl.defer(IconDeferrerImpl.java:77)
    at com.intellij.psi.impl.PsiClassImplUtil.getClassIcon(PsiClassImplUtil.java:342)
    at com.intellij.psi.impl.PsiClassImplUtil.getClassIcon(PsiClassImplUtil.java:329)
    at com.intellij.psi.impl.source.PsiClassImpl.getElementIcon(PsiClassImpl.java:665)
    at com.intellij.psi.impl.ElementBase.computeIconNow(ElementBase.java:136)
    at com.intellij.psi.impl.ElementBase.access$000(ElementBase.java:52)
    at com.intellij.psi.impl.ElementBase$1.fun(ElementBase.java:62)
    at com.intellij.psi.impl.ElementBase$1.fun(ElementBase.java:56)
    at com.intellij.ui.IconDeferrerImpl.defer(IconDeferrerImpl.java:77)
    at com.intellij.psi.impl.ElementBase.computeIcon(ElementBase.java:124)
    at com.intellij.psi.impl.ElementBase.getIcon(ElementBase.java:89)
    at com.intellij.ide.JavaFileIconPatcher.replaceIcon(JavaFileIconPatcher.java:71)
    at com.intellij.ide.JavaFileIconPatcher.patchIcon(JavaFileIconPatcher.java:44)
    at com.intellij.util.IconUtil$1.fun(IconUtil.java:139)
    at com.intellij.util.IconUtil$1.fun(IconUtil.java:121)
    at com.intellij.ui.DeferredIconImpl$2$1.run(DeferredIconImpl.java:103)
    at com.intellij.ui.IconDeferrerImpl.evaluateDeferred(IconDeferrerImpl.java:112)
    at com.intellij.ui.DeferredIconImpl$2$2.run(DeferredIconImpl.java:118)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1171)
    at com.intellij.ui.DeferredIconImpl$2.run(DeferredIconImpl.java:115)
    at com.intellij.concurrency.JobLauncherImpl$2.call(JobLauncherImpl.java:139)
    at com.intellij.concurrency.JobLauncherImpl$2.call(JobLauncherImpl.java:135)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at com.intellij.concurrency.PrioritizedFutureTask.access$101(PrioritizedFutureTask.java:32)
    at com.intellij.concurrency.PrioritizedFutureTask$1.run(PrioritizedFutureTask.java:72)
    ... 4 more



java.lang.AssertionError: ContentElementType: FILE; file: HtmlFile:incognito_mode_start_page.html
    Boolean.TRUE.equals(getUserData(BUILDING_STUB)) = false
    getTreeElement() = Element(FILE)
    vFile instanceof VirtualFileWithId = true
    StubUpdatingIndex.canHaveStub(vFile) = false
    at com.intellij.psi.impl.source.PsiFileImpl.calcStubTree(PsiFileImpl.java:996)
    at com.intellij.psi.stubs.StubProcessingHelperBase.processStubsInFile(StubProcessingHelperBase.java:47)
    at com.intellij.psi.stubs.StubIndexImpl$2.perform(StubIndexImpl.java:245)
    at com.intellij.psi.stubs.StubIndexImpl$2.perform(StubIndexImpl.java:236)
    at com.intellij.util.indexing.ValueContainer.forEach(ValueContainer.java:60)
    at com.intellij.psi.stubs.StubIndexImpl.process(StubIndexImpl.java:236)
    at com.intellij.psi.stubs.StubIndexImpl.get(StubIndexImpl.java:210)
    at com.intellij.psi.stubs.StubIndex.safeGet(StubIndex.java:73)
    at com.intellij.psi.impl.java.stubs.index.JavaSuperClassNameOccurenceIndex.get(JavaSuperClassNameOccurenceIndex.java:49)
    at com.intellij.psi.impl.search.JavaDirectInheritorsSearcher$5.compute(JavaDirectInheritorsSearcher.java:107)
    at com.intellij.psi.impl.search.JavaDirectInheritorsSearcher$5.compute(JavaDirectInheritorsSearcher.java:104)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:939)
    at com.intellij.psi.impl.search.JavaDirectInheritorsSearcher.execute(JavaDirectInheritorsSearcher.java:104)
    at com.intellij.psi.impl.search.JavaDirectInheritorsSearcher.execute(JavaDirectInheritorsSearcher.java:48)
    at com.intellij.util.ExecutorsQuery.processResults(ExecutorsQuery.java:43)
    at com.intellij.util.AbstractQuery.forEach(AbstractQuery.java:77)
    at com.intellij.util.UniqueResultsQuery.process(UniqueResultsQuery.java:66)
    at com.intellij.util.UniqueResultsQuery.forEach(UniqueResultsQuery.java:56)
    at com.intellij.psi.search.searches.ClassInheritorsSearch.processInheritors(ClassInheritorsSearch.java:278)
    at com.intellij.psi.search.searches.ClassInheritorsSearch.access$100(ClassInheritorsSearch.java:46)
    at com.intellij.psi.search.searches.ClassInheritorsSearch$1.execute(ClassInheritorsSearch.java:75)
    at com.intellij.psi.search.searches.ClassInheritorsSearch$1.execute(ClassInheritorsSearch.java:53)
    at com.intellij.util.ExecutorsQuery.processResults(ExecutorsQuery.java:43)
    at com.intellij.util.AbstractQuery.forEach(AbstractQuery.java:77)
    at org.jetbrains.android.facet.AndroidFacet.fillMap(AndroidFacet.java:979)
    at org.jetbrains.android.facet.AndroidFacet.getInitialClassMap(AndroidFacet.java:946)
    at org.jetbrains.android.facet.AndroidFacet.getClassMap(AndroidFacet.java:892)
    at org.jetbrains.android.dom.AndroidDomElementDescriptorProvider.getDescriptor(AndroidDomElementDescriptorProvider.java:62)
    at org.jetbrains.android.dom.AndroidDomElementDescriptorProvider.getDescriptor(AndroidDomElementDescriptorProvider.java:91)
    at com.intellij.psi.impl.source.xml.XmlTagImpl.computeElementDescriptor(XmlTagImpl.java:461)
    at com.intellij.psi.impl.source.xml.XmlTagImpl.getDescriptor(XmlTagImpl.java:446)
    at com.intellij.codeInsight.daemon.impl.analysis.XmlHighlightVisitor.checkTagByDescriptor(XmlHighlightVisitor.java:284)
    at com.intellij.codeInsight.daemon.impl.analysis.XmlHighlightVisitor.checkTag(XmlHighlightVisitor.java:164)
    at com.intellij.codeInsight.daemon.impl.analysis.XmlHighlightVisitor.visitXmlToken(XmlHighlightVisitor.java:128)
    at com.intellij.psi.impl.source.xml.XmlTokenImpl.accept(XmlTokenImpl.java:44)
    at com.intellij.codeInsight.daemon.impl.analysis.XmlHighlightVisitor.visit(XmlHighlightVisitor.java:724)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$5.run(GeneralHighlightingPass.java:300)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:419)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.access$300(GeneralHighlightingPass.java:65)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$7.run(GeneralHighlightingPass.java:425)
    at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:87)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:422)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.access$300(GeneralHighlightingPass.java:65)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$7.run(GeneralHighlightingPass.java:425)
    at com.intellij.codeInsight.daemon.impl.analysis.XmlHighlightVisitor.analyze(XmlHighlightVisitor.java:734)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:422)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.access$300(GeneralHighlightingPass.java:65)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$7.run(GeneralHighlightingPass.java:425)
    at com.intellij.codeInsight.daemon.impl.RefCountHolder.analyze(RefCountHolder.java:298)
    at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.analyze(HighlightVisitorImpl.java:163)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:422)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectHighlights(GeneralHighlightingPass.java:378)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectInformationWithProgress(GeneralHighlightingPass.java:218)
    at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:86)
    at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:61)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:357)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1171)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:348)
    at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:345)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:321)
    at com.intellij.concurrency.JobLauncherImpl$2.call(JobLauncherImpl.java:139)
    at com.intellij.concurrency.JobLauncherImpl$2.call(JobLauncherImpl.java:135)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at com.intellij.concurrency.PrioritizedFutureTask.access$101(PrioritizedFutureTask.java:32)
    at com.intellij.concurrency.PrioritizedFutureTask$1.run(PrioritizedFutureTask.java:72)
    at com.intellij.concurrency.PrioritizedFutureTask.run(PrioritizedFutureTask.java:115)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
    at java.lang.Thread.run(Thread.java:680)

------------------------------------ 第二堆错误....

    ContentElementType: FILE; file: HtmlFile:incognito_mode_start_page.html
    Boolean.TRUE.equals(getUserData(BUILDING_STUB)) = false
    getTreeElement() = Element(FILE)
    vFile instanceof VirtualFileWithId = true
    StubUpdatingIndex.canHaveStub(vFile) = false: ContentElementType: FILE; file: HtmlFile:incognito_mode_start_page.html
    Boolean.TRUE.equals(getUserData(BUILDING_STUB)) = false
    getTreeElement() = Element(FILE)
    vFile instanceof VirtualFileWithId = true
    StubUpdatingIndex.canHaveStub(vFile) = false
java.lang.AssertionError: ContentElementType: FILE; file: HtmlFile:incognito_mode_start_page.html
    Boolean.TRUE.equals(getUserData(BUILDING_STUB)) = false
    getTreeElement() = Element(FILE)
    vFile instanceof VirtualFileWithId = true
    StubUpdatingIndex.canHaveStub(vFile) = false
    at com.intellij.psi.impl.source.PsiFileImpl.calcStubTree(PsiFileImpl.java:996)
    at com.intellij.psi.stubs.StubProcessingHelperBase.processStubsInFile(StubProcessingHelperBase.java:47)
    at com.intellij.psi.stubs.StubIndexImpl$2.perform(StubIndexImpl.java:245)
    at com.intellij.psi.stubs.StubIndexImpl$2.perform(StubIndexImpl.java:236)
    at com.intellij.util.indexing.ValueContainer.forEach(ValueContainer.java:60)
    at com.intellij.psi.stubs.StubIndexImpl.process(StubIndexImpl.java:236)
    at com.intellij.psi.stubs.StubIndexImpl.get(StubIndexImpl.java:210)
    at com.intellij.psi.stubs.StubIndex.safeGet(StubIndex.java:73)
    at com.intellij.psi.impl.java.stubs.index.JavaSuperClassNameOccurenceIndex.get(JavaSuperClassNameOccurenceIndex.java:49)
    at com.intellij.psi.impl.search.JavaDirectInheritorsSearcher$5.compute(JavaDirectInheritorsSearcher.java:107)
    at com.intellij.psi.impl.search.JavaDirectInheritorsSearcher$5.compute(JavaDirectInheritorsSearcher.java:104)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:939)
    at com.intellij.psi.impl.search.JavaDirectInheritorsSearcher.execute(JavaDirectInheritorsSearcher.java:104)
    at com.intellij.psi.impl.search.JavaDirectInheritorsSearcher.execute(JavaDirectInheritorsSearcher.java:48)
    at com.intellij.util.ExecutorsQuery.processResults(ExecutorsQuery.java:43)
    at com.intellij.util.AbstractQuery.forEach(AbstractQuery.java:77)
    at com.intellij.util.UniqueResultsQuery.process(UniqueResultsQuery.java:66)
    at com.intellij.util.UniqueResultsQuery.forEach(UniqueResultsQuery.java:56)
    at com.intellij.psi.search.searches.ClassInheritorsSearch.processInheritors(ClassInheritorsSearch.java:278)
    at com.intellij.psi.search.searches.ClassInheritorsSearch.access$100(ClassInheritorsSearch.java:46)
    at com.intellij.psi.search.searches.ClassInheritorsSearch$1.execute(ClassInheritorsSearch.java:75)
    at com.intellij.psi.search.searches.ClassInheritorsSearch$1.execute(ClassInheritorsSearch.java:53)
    at com.intellij.util.ExecutorsQuery.processResults(ExecutorsQuery.java:43)
    at com.intellij.util.AbstractQuery.forEach(AbstractQuery.java:77)
    at org.jetbrains.android.facet.AndroidFacet.fillMap(AndroidFacet.java:979)
    at org.jetbrains.android.facet.AndroidFacet.getInitialClassMap(AndroidFacet.java:946)
    at org.jetbrains.android.facet.AndroidFacet.getClassMap(AndroidFacet.java:892)
    at org.jetbrains.android.dom.AndroidDomElementDescriptorProvider.getDescriptor(AndroidDomElementDescriptorProvider.java:62)
    at org.jetbrains.android.dom.AndroidDomElementDescriptorProvider.getDescriptor(AndroidDomElementDescriptorProvider.java:91)
    at com.intellij.psi.impl.source.xml.XmlTagImpl.computeElementDescriptor(XmlTagImpl.java:461)
    at com.intellij.psi.impl.source.xml.XmlTagImpl.getDescriptor(XmlTagImpl.java:446)
    at com.intellij.codeInsight.daemon.impl.analysis.XmlHighlightVisitor.checkTagByDescriptor(XmlHighlightVisitor.java:284)
    at com.intellij.codeInsight.daemon.impl.analysis.XmlHighlightVisitor.checkTag(XmlHighlightVisitor.java:164)
    at com.intellij.codeInsight.daemon.impl.analysis.XmlHighlightVisitor.visitXmlToken(XmlHighlightVisitor.java:128)
    at com.intellij.psi.impl.source.xml.XmlTokenImpl.accept(XmlTokenImpl.java:44)
    at com.intellij.codeInsight.daemon.impl.analysis.XmlHighlightVisitor.visit(XmlHighlightVisitor.java:724)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$5.run(GeneralHighlightingPass.java:300)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:419)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.access$300(GeneralHighlightingPass.java:65)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$7.run(GeneralHighlightingPass.java:425)
    at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:87)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:422)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.access$300(GeneralHighlightingPass.java:65)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$7.run(GeneralHighlightingPass.java:425)
    at com.intellij.codeInsight.daemon.impl.analysis.XmlHighlightVisitor.analyze(XmlHighlightVisitor.java:734)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:422)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.access$300(GeneralHighlightingPass.java:65)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$7.run(GeneralHighlightingPass.java:425)
    at com.intellij.codeInsight.daemon.impl.RefCountHolder.analyze(RefCountHolder.java:298)
    at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.analyze(HighlightVisitorImpl.java:163)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:422)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectHighlights(GeneralHighlightingPass.java:378)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectInformationWithProgress(GeneralHighlightingPass.java:218)
    at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:86)
    at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:61)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:357)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1171)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:348)
    at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:345)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:321)
    at com.intellij.concurrency.JobLauncherImpl$2.call(JobLauncherImpl.java:139)
    at com.intellij.concurrency.JobLauncherImpl$2.call(JobLauncherImpl.java:135)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at com.intellij.concurrency.PrioritizedFutureTask.access$101(PrioritizedFutureTask.java:32)
    at com.intellij.concurrency.PrioritizedFutureTask$1.run(PrioritizedFutureTask.java:72)
    at com.intellij.concurrency.PrioritizedFutureTask.run(PrioritizedFutureTask.java:115)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
    at java.lang.Thread.run(Thread.java:680)
4

2 回答 2

6

我遇到了同样的问题,在谷歌搜索后,我发现答案只是使缓存无效,然后重新启动 Android Studio。文件>使缓存无效/重新启动。然后从对话框中选择“无效并重新启动

于 2013-10-14T21:06:09.257 回答
1

文件 > 使缓存无效/重新启动。它对我有用

于 2014-05-14T06:31:56.873 回答