build/gmsl/__gmsl:512: *** non-numeric second argument to `wordlist' function: ''. Stop.
来源:互联网 发布:人工智能发展三个阶段 编辑:程序博客网 时间:2024/06/05 09:32
git到windows上,然后把这个工程复制到ubuntu中,
ndk-build时,报错
build/gmsl/__gmsl:512: *** non-numeric second argument to `wordlist' function: ''. Stop.
直接dos2unix -R *
就好了。
大牛说是xml的问题,我还不太懂。如下:
===================
参考
参考http://www.cnblogs.com/frydsh/archive/2013/05/11/3073349.html
今天,当我将一个包含jni的Android工程从Windows电脑上拷贝到Ubuntu电脑上之后,编译它的时候出现以下错误:
.../android-ndk/ndk-build clean
Invalid attribute name:
package
.../android-ndk/build/gmsl/__gmsl:512: *** non-numeric second argument to `wordlist' function: ''. Stop.
问题的关键是:两台机器上的环境都是正常可用的,且工程在Windows下可以正常编译。
在网络上搜索一圈之后,大概是说,AndroidManifest.xml中没有指定sdk版本,但是我的AndroidManifest.xml中是指定了sdk的:
<uses-sdk android:minSdkVersion="17"
android:targetSdkVersion="17"
android:maxSdkVersion="17" />
这时候,我怀疑可能是Windows和Linux之间的文本文件兼容性问题导致上面的错误的,于是调用dos2unix:
dos2unix AndroidManifest.xml
这么做之后,问题解决了。
=======================
- /android-ndk/build/gmsl/__gmsl:512: *** non-numeric second argument to `wordlist' function: ''. Stop
- build/gmsl/__gmsl:512: *** non-numeric second argument to `wordlist' function: ''. Stop.
- android-ndk-r8e/build/gmsl/__gmsl:512: *** non-numeric second argument to `wordlist' function: ''.
- android-ndk-r8e/build/gmsl/__gmsl:512: *** non-numeric second argument to `wordlist' function: ''.
- android-ndk-r8d/build/gmsl/__gmsl:512: *** non-numeric second argument to `wordlist' function: ''.
- android-ndk-r8e/build/gmsl/__gmsl:512: *** non-numeric second argument to `wordlist' function问题
- __gmsl:512: *** non-numeric second argument to `wordlist' function: ''
- *** non-numeric second argument to `wordlist' function: ''. Stop.
- *** non-numeric second argument to `wordlist' function: ''. Stop错误解决办法
- *** non-numeric second argument to `wordlist' function: ''. Stop错误解决办法
- non-numeric second argument to `wordlist' function: '
- non-numeric second argument to `wordlist' function
- non-numeric second argument to `wordlist' function
- Invalid attribute name: package non-numeric second argument to `wordlist' function: ''. Stop.
- jni工程出现 non-numeric second argument to `wordlist' function
- jni编译non-numeric second argument to `wordlist' function错误
- NDK问题:non-numeric second argument to `wordlist' function:
- Ubuntu下ndk-build编译C++出错:non-numeric second argument to `wordlist' function: '
- 在object-c运行时替换私有类的方法
- linux 6.3 安装jdk1.6
- UIImagePickerController选取图片后在判断图片方向,解决保存图片或重绘图片后旋转90度的方法
- Android Gradle cannot find symbol class Gson
- C/C++
- build/gmsl/__gmsl:512: *** non-numeric second argument to `wordlist' function: ''. Stop.
- Android锁屏未读短信,未接电话
- VMWARE复制后网络不可用:Device eth0 does not seem to be present, delaying initialization.
- [WebView] How to display local images from a remotely loaded URL web page?
- 忙了一天,好累啊
- atof()函数学习
- 带农历的jquery日期控件样式和代码
- 解剖JavaScript中的null和undefined
- WordPress无插件调用最新、热门、随机文章