android的ndk修改app_platform的方法,亲测绝对可行

android ndk:warning APP_PLATFORM android-18 is larger than adroid:minSdkVersion 10 in ./AndroiddManifest.xml,




[2014-01-15 18:01:56 - debugNdk] Unknown Application ABI: 
[2014-01-15 18:01:56 - debugNdk] Android
[2014-01-15 18:01:56 - debugNdk] Unknown Application ABI: 
[2014-01-15 18:01:56 - debugNdk] NDK:
[2014-01-15 18:01:56 - debugNdk] Unknown Application ABI: 
[2014-01-15 18:01:56 - debugNdk] WARNING:
[2014-01-15 18:01:56 - debugNdk] Unknown Application ABI: 
[2014-01-15 18:01:56 - debugNdk] APP_PLATFORM
[2014-01-15 18:01:56 - debugNdk] Unknown Application ABI: 
[2014-01-15 18:01:56 - debugNdk] android-18
[2014-01-15 18:01:56 - debugNdk] Unknown Application ABI: 
[2014-01-15 18:01:56 - debugNdk] is
[2014-01-15 18:01:56 - debugNdk] Unknown Application ABI: 
[2014-01-15 18:01:56 - debugNdk] larger
[2014-01-15 18:01:56 - debugNdk] Unknown Application ABI: 
[2014-01-15 18:01:56 - debugNdk] than
[2014-01-15 18:01:56 - debugNdk] Unknown Application ABI: 
[2014-01-15 18:01:56 - debugNdk] android:minSdkVersion
[2014-01-15 18:01:56 - debugNdk] Unknown Application ABI: 
[2014-01-15 18:01:56 - debugNdk] 10
[2014-01-15 18:01:56 - debugNdk] Unknown Application ABI: 
[2014-01-15 18:01:56 - debugNdk] in
[2014-01-15 18:01:56 - debugNdk] Unknown Application ABI: 
[2014-01-15 18:01:56 - debugNdk] ./AndroidManifest.xml
[2014-01-15 18:01:56 - debugNdk] Unknown Application ABI: 
[2014-01-15 18:01:56 - debugNdk] 
[2014-01-15 18:01:56 - debugNdk] Unknown Application ABI: 
[2014-01-15 18:01:56 - debugNdk] 
[2014-01-15 18:01:56 - debugNdk] Unknown Application ABI: 
[2014-01-15 18:01:56 - debugNdk] 
[2014-01-15 18:01:56 - debugNdk] Unknown Application ABI: 
[2014-01-15 18:01:56 - debugNdk] 
armeabi
[2014-01-15 18:01:56 - debugNdk] Unable to detect application ABI's

这个提示是我在debug as->android native applicationd 进行真机调试的时候遇到的很恶心,关于怎样开始ndk调试大家参考我的另一篇转载文章:http://blog.csdn.net/xingxiliang/article/details/18351133

我的android sdk 是 android-18, 我的手机是2.3 (即android-10)那么怎么解决这个ndk的app_platform不匹配的问题呢?

需要在jni文件夹的下面手动建立新一个文件 Application.mk


内容:

APP_PLATFORM := android-10


然后clean工程,重新编译,再看看。。恭喜你成功了,如果还不能成功就检查有没有安装与ndk版本对应的android sdk请参考我的另一篇文章 http://blog.csdn.net/xingxiliang/article/details/18351769


你可能感兴趣的:(c++)