Wednesday, October 19, 2016

[Android][Resolved] EmptyThrowable : Invalid Stub element type in index

This case is I am not able to start Android Virtual Device cos the EmptyThrowable Exception: Invalid Stub element type in index.
11:45:03 AM EmptyThrowable
            Invalid stub element type in index:
            file: file://C:/Users/xxx/AppData/Local/Android/sdk/sources/android-24/android/location/OnNmeaMessageListener.java
            psiElement: PsiReferenceList
            requiredClass: interface com.intellij.psi.PsiClass
            actualClass: class com.intellij.psi.impl.source.PsiReferenceListImpl
            virtualFile: size:1342; stamp:0; modCount:1476872314492; fileType:JAVA; language:JAVA
            document: size:1342; stamp:0; committed:true; saved:true
            psiFile: size:1342; stamp:0; class:com.intellij.psi.impl.source.PsiJavaFileImpl; language:JAVA
            stubInfo: created in getStubTree(); with backReference
            indexing info: no data
So first you could do is click "file"-> "Invalidate Caches / Restart" to clear invalidate Caches in your android studion and the restart automatically.



After restarted android studio, you are still not able to run Android Virtual Device, let look for any update available for your android studio:



For my case, i updated my Android studio to latest version 2.2.2, ran Android Virtual Device (AVD) for the project and it's not work again, just follow the instruction to download the missing system image :

And finally it works .

Reference

http://www.voidcn.com/blog/louisyonge/article/p-4936383.html

No comments :

Post a Comment