Skip to content Skip to sidebar Skip to footer

Android Studio Classcastexception When Attempting To Open A Layout Xml File

I have an Android Studio project composed of several modules as shown: Project facebookLibraryModule zxingLibraryModule myLibraryModule applicationModule myLibraryModule depends

Solution 1:

Not sure if you solved it or not by now. I had a similar issue using Android Studio 1.0.1 and 1.0.2.(got the same ClassCastException when opening any XML file, not only layouts). The issue in my case is cause due a XML file being too large (got a warning that the XML file exceeded a set limit of 2560000, mine was almost 9 MB). Removing it from the /res folder and a restart of Android Studio helped.

I hope the above info helps a bit.

Cheers,

Post a Comment for "Android Studio Classcastexception When Attempting To Open A Layout Xml File"