【转】Unparsed aapt error(s)! Check the console for output
来源:互联网 发布:数据行情是什么意思 编辑:程序博客网 时间:2024/05/17 01:35
在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:/workspace/Sudoku/res/menu/menu.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.. 就会没问题
- 【转】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
- Unparsed aapt error(s)! Check the console for output解决方法
- 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错误解决方法(转)
- 【转】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错误修改
- 错误集锦之 "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错误修改
- Description Resource Path Location Type Unparsed aapt error(s)! Check the Check the console for outp
- Description Resource Path Location Type Unparsed aapt error(s)! Check the co
- 1月份
- 不亢不卑 有礼有节
- 关于·nowrap与width
- Java编程能力强化(2)——搜索解决方案类问题的通用解法
- 斯坦福大学开放课程:编程方法.03/第三课练习:karel 算数(将未知数量beeper变为X倍)
- 【转】Unparsed aapt error(s)! Check the console for output
- void LDE32(PVOID pInsAddress,DWORD* pInsLength)
- 一个好用的php 实现无限分类的方法
- 基于 Linux 系统的Nagios网络管理模块的实现
- 如何伪装Linux系统 给黑客设置系统假象
- 优化PHP代码的40条建议
- php生成随机密码的几种方法
- PHP生成随机密码的三种方法
- 三款破解PHP加密程序工具软件