Android - Unparsed aapt error(s)错误的处理方法
来源:互联网 发布:网络专员岗位职责 编辑:程序博客网 时间:2024/05/24 07:40
在Eclipse平台进行Android 应用开发时,编辑,修改或增删 res/下资源文件时有时会遇到如下错误提示:“Unparsed aapt error(s)! Check the console for output",因为它没有描述错误在什么地方,我不知道如何修正,于是百度找找,其中不少的文章都说:
”可检查控制台输出的提示来解决。
比如在res/layout下新加了一个xml文件: NewScreen.xml, 这时就会遇到上述错误提示, 控制台会有类似如下提示:
the layout file name can only contain characters in [a- z0-9] etc.
即layout 文件名只能在小写的26个字母和数字0~9中选取. 因此,我们的文件名中有大写字母就会报错.
有时如果错误提示不清楚, 可以把R.java删掉使其重新生成. 可以不直接删, 把res下的某个文件删去(先备份一下), R.java即会重新更新.“
我尝试多次去重命名刚才新增加的xml文件,甚至删除R.java文件,还是无济于事!后来看到了另一个方法:
”但是你的控制台上找不到错误或者 看不懂错误的时候的一招。
例:出现
[2010-03-29 10:02:47 - Sudoku] W/ResourceType( 3540): Bad XML block: header size 62 or total size 26129448 is larger than data size 0
[2010-03-29 10:02:47 - Sudoku] E:workspaceSudoku esmenumenu.xml:2: ERROR Error parsing XML: no element found
[2010-03-29 10:04:55 - Sudoku] W/ResourceType( 4892): Bad XML block: header size 62 or total size 0 is larger than data size 0
以上错误的时候, 点 Project--------->clean.. 就会没问题 “
照着做,真的没事了!
转自:http://www.cnmsdn.com/html/201005/1273162033ID4274.html
- Android - Unparsed aapt error(s)错误的处理方法
- Android - Unparsed aapt error(s)错误的处理方法
- Android - Unparsed aapt error(s)错误的处理方法
- Android - Unparsed aapt error(s)错误的处理方法
- Android - Unparsed aapt error(s)错误的处理方法
- Unparsed aapt error(s)错误的处理方法 以及 音乐播放
- Android - 当碰到Unparsed aapt error(s)错误时候
- 如何处理android 报错 "Unparsed aapt error(s)"
- Unparsed aapt error(s)! Check the console for output.错误
- android 项目中 Unparsed aapt error(s)! Check the console for output错误解决方法(转)
- 【转】Android 提示 “Unparsed aapt error(s)! Check the console for output”. 这个错误
- 【转】Android 提示 “Unparsed aapt error(s)! Check the console for output”. 这个错误
- Android Unparsed aapt error(s)! Check the console for output错误修改
- Android Unparsed aapt error(s)! Check the console for output错误修改
- [Android] Unparsed aapt error(s)! Check the console for output
- [Android] Unparsed aapt error(s)! Check the console for output
- 错误集锦之 "Unparsed aapt error(s)! Check the console for output".
- android中的Unparsed aapt error(s)! Check the console for output问题
- 利用Eval解json格式,浏览器会报,invalid label错
- 读取xml文件出现错误的一个解决方法(android)
- BIOS中英文对照
- 草他麻痹
- whoosh笔记:用Apache commons-net 包对服务器上的文件进行先重写后删除操作
- Android - Unparsed aapt error(s)错误的处理方法
- vs2008序列号
- hibernate 更新 update执行后 数据库改变后,立刻回到原来的样子 好像回滚一样
- 田金龙老师讲解杨式太极拳的起势
- S型矩阵的输出
- 开机自动运行---/etc/init.d/rcS 分析【转】
- C/C++语言中void类型及void*指针
- gridview调用显示日期时候格式问题
- SQLManager2007LiteforMySQL