I have an Android Studio project composed of several modules as shown:
Project
- facebookLibraryModule
- zxingLibraryModule
- myLibraryModule
- applicationModule
myLibraryModule depends on both Facebook and ZXing and applicationModule depends on myLibraryModule.
I am able to open layout XML files in the ZXing library (Facebook doesn't contain any), but when I try to open a layout XML from either myLibrary or the application, I get a ClassCastException
ClassCastException: com.intellij.psi.impl.source.PsiPlainTextFileImpl cannot be cast to com.intellij.psi.xml.XmlFile: com.intellij.psi.impl.source.PsiPlainTextFileImpl cannot be cast to com.intellij.psi.xml.XmlFile
Additionally, when I try to create a layout file,
I get a NullPointerException
however, the layout file is created. Attempting to open the file gives the ClassCastException.
I have tried creating the layout in other text editors (Notepad, Notepad++, etc) and have the same problem. I have re-installed Android Studio to no avail. I am running Beta 0.8.9 Build AI-135.1404660 and just checked for updates, none are available in the Beta Channel.
Any thoughts?
No comments:
Post a Comment