Android App Development Error: "bad Xml Block: Header Size 60 Or Total Size 3932356 Is Larger Than Data Size 0"
Solution 1:
I just ran into the same error message. In my case, the XML was referencing a missing icon file in the drawables folder.
Is it possible you did not have string/save_tea_label at the time of the error?
Solution 2:
A Project->Clean should take care of this.
Edit: If a clean build didn't help, can you try replacing the XML
file in question with the following contents (create a new file):
<?xml version="1.0" encoding="utf-8"?><menuxmlns:android="http://schemas.android.com/apk/res/android" ><itemandroid:id="@+id/save_tea"android:title="@string/save_tea_label" /></menu>
The only thing I can think of is that a weird character got in there somehow (copy/paste?).
Solution 3:
Make sure you are not using any APIs not available for the API level you are developing for. See this post for details; Error in the sample code “bluetooth chat”
Solution 4:
For me, I tried to add a @drawable/add.png to a menu item's icon attribute before realising that it's a declarative literal and not a bloody path.
Simply removing the .png and my problem was solved q:)
Post a Comment for "Android App Development Error: "bad Xml Block: Header Size 60 Or Total Size 3932356 Is Larger Than Data Size 0""