Android App开发错误:“Bad XML block: header size 60 or total size 3932356 is large than data size 0" [英] Android App development error: "Bad XML block: header size 60 or total size 3932356 is larger than data size 0"

查看:46
本文介绍了Android App开发错误:“Bad XML block: header size 60 or total size 3932356 is large than data size 0"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我检查了其他类似的帖子,他们建议清理构建路径,但这根本没有帮助.
我已经开始开发 Android 应用,但在向 Activity 添加菜单时遇到了令人沮丧的问题.

I checked other posts that were similar and they recommended to clean the build path, but that did not help at all.
I have started android app development and am having a frustrating problem with adding a menu to an activity.

<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
    <item android:id="@+id/save_tea" android:title="@string/save_tea_label" />
</menu>

这会在 Eclipse 控制台中抛出错误的 XML 块:标题大小 60 或总大小 3932356 大于数据大小 0".我有一个主应用程序活动的菜单,它工作正常,但这个菜单不能合并成R生成的文件.

This throws the "Bad XML block: header size 60 or total size 3932356 is larger than data size 0" in the Eclipse console. I have a menu for the main app activity and it works fine, but this one cannot be combined into the R generated file.

我重写了一堆我的页面,现在似乎可以工作了,所以我要么错过了最初的内容,要么 eclipse 决定重新评估该文件.

推荐答案

我刚刚遇到了同样的错误消息.就我而言,XML 引用了 drawables 文件夹中缺少的图标文件.

I just ran into the same error message. In my case, the XML was referencing a missing icon file in the drawables folder.

是否有可能在错误发生时您没有 string/save_tea_label?

Is it possible you did not have string/save_tea_label at the time of the error?

这篇关于Android App开发错误:“Bad XML block: header size 60 or total size 3932356 is large than data size 0"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆