Android - Unparsed aapt error(s)错误的处理方法
来源:互联网 发布:手风琴菜单js 编辑:程序博客网 时间:2024/05/22 13:28
在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..就会没问题 “
- 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问题
- java给iphone应用实现推送
- VC6.0下设置Unicode编译环境
- NSNotificationCenter消息通信机制介绍(KVO)
- weblogic study
- chromium log相关
- Android - Unparsed aapt error(s)错误的处理方法
- 隐马尔可夫(HMM)模型的各种语言实现
- GDI+ 显示DICOM 图像测试
- 30天自制操作系统
- Unparsed aapt error(s)! Check the console for output解决方法
- PostgreSQL/PostGIS安装
- IOS 数据存储
- VC++创建指定路径的一系列文件夹
- 12.log4j.properties例子:log4j.appender.file.Append