Invalid attribute name: package non-numeric second argument to `wordlist' function: ''. Stop.

在ubuntu上ndk編譯時遇到以下錯誤:

Invalid attribute name: package non-numeric second argument to `wordlist' function: ''.  Stop.

原因:項目是從Windows 制過來的, 所以

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

解決:用vim打開AndroidManifest.xml,在命令模式下輸入"set filetype=unix",保存退出即可

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章