Get An Exception When Loading Android Layout Xml File
For some reason I get the following exception when I load the XML layout in eclipse. I am not too sure what might be causing this as I don't believe I have made any new changes to
Solution 1:
I had the same issue in Android Studio. In my case, the root layout was a LinearLayout. In there, I had a nested RelativeLayout with the layout height and width as match_parent and a DrawerLayout included whose layout height and width was also match_parent. I also had a Button and TextView in the RelativeLayout. I think AndroidStudio couldn't draw the Button and/or TextView because of all the nested 'match_parent's.
I would try looking at the nested layouts. If your issue isn't the nested layouts, I would try altering your layout little by little to see what the IDE isn't able to render.
Post a Comment for "Get An Exception When Loading Android Layout Xml File"