android 项目中 Unparsed aapt error(s)! Check the console for output错误解决方法(转)
来源:互联网 发布:琅琊榜台湾知乎 编辑:程序博客网 时间:2024/05/16 13:54
在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)! 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错误修改
- 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问题
- 开发中碰到的问题:Unparsed aapt error(s)! Check the console for output.
- 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
- Android - 当碰到Unparsed aapt error(s)错误时候
- [转贴]位段结构体 和 结构体内存分配问题
- 正则表达式基础
- 文件夹右键菜单没有共享和安全的解决办法
- JS 保留字
- import 初探之一 —— 导入 Package
- android 项目中 Unparsed aapt error(s)! Check the console for output错误解决方法(转)
- 关于WinSock.h和WinSock2.h的重复定义问题
- asp 用split出现null无效的问题
- c语言中setjmp与longjmp(4)
- cognos使用流程
- 简单生活
- debug release 的区别
- frame与iframe的区别
- 一用subclipse 就导致eclipse莫名奇妙的退出(crash)