您的位置:首页 > 运维架构

*** non-numeric second argument to `wordlist' function: ''. Stop错误解决办法

2013-07-04 10:41 225 查看
PS: 解决办法搜集自:stackoverflow

website:http://stackoverflow.com/questions/5677178/ndk-gdb-fails-with-message-invalid-attribute-name-package

1. 原因:

The AndroidManifest.xml file had Windows carriage control (\r\n) which was messing up the ndk-gdb script.

总之就是说AndroidManifest.xml文件格式不对,原格式是Windows下面的dos格式,现在转到Mac OS X下面了,文件格式不对,对里面的内容的读取出现问题不能正常解析,现在需要转换成Mac OS X下面的unix格式才可以.

例如:如果使用的开发IDE是Eclipse,则可以用Eclipse打开该文件,然后开启Eclipse里面的显示空白特殊字符功能,就可以发现出现该错误的AndroidManifest.xml文件和没有错误的正常的AndroidManifest.xml文件,每行后面的换行字符不一样。

Eclipse里面开启“显示空白特殊字符”功能方法:

"general"->"Editors"->"Text Editors"选中后,右侧"Show whitespace characters"选面选中即可。

2. 解决办法:

To fix this,

edited the file in vi and did a "set filetype=unix".

on mac, it should be "set fileformat=unix".

That is:

vim AndroidManifest.xml

:set fileformat=unix

:w

:q!

ps: 相应的Linux下面则用unix2dos、dos2unix即可;windows下面,则可以使用UltraEdit工具转换。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐