I picked up the new 2.3 version of the SDK platform and tools, and when I build, I get eight instances of the error below. Then errors about missing resources. Presumably my resources have failed to build.
W/ResourceType( 8168): Bad XML block: header size 146 or total size 3145924 is larger than data size 0
Googling indicates that perhaps a Clean would fix, but it does not.
Googling also indicates that this error would be caused by a poorly formatted XML document, but I have not changed any resources since the upgrade (or for that matter any code), and the code was building and working fine pre-upgrade.
Any idea what’s up, or suggestions to troubleshoot?
Have you resolved this yet?
Is there any chance that in your strings.xml file you have values with substitution? By this I mean something like:
I found out that the
aaptnow enforces having argument indices for strings with multiple formatters. Update all strings like this to use indices like this:Do a Project > Clean (or Build the project) and the error should go away. That’s what I did and the error was resolved.