NDK(8)"Unknown Application ABI"的解决方案

ndk 调试本地应用时

报错如下 :

console信息:

[2015-08-17 19:52:05 - NdkSample] Unknown Application ABI: 
[2015-08-17 19:52:05 - NdkSample] Android
[2015-08-17 19:52:05 - NdkSample] Unknown Application ABI: 
[2015-08-17 19:52:05 - NdkSample] NDK:
[2015-08-17 19:52:05 - NdkSample] Unknown Application ABI: 
[2015-08-17 19:52:05 - NdkSample] WARNING:
[2015-08-17 19:52:05 - NdkSample] Unknown Application ABI: 
[2015-08-17 19:52:05 - NdkSample] APP_PLATFORM
[2015-08-17 19:52:05 - NdkSample] Unknown Application ABI: 
[2015-08-17 19:52:05 - NdkSample] android-19
[2015-08-17 19:52:05 - NdkSample] Unknown Application ABI: 
[2015-08-17 19:52:05 - NdkSample] is
[2015-08-17 19:52:05 - NdkSample] Unknown Application ABI: 
[2015-08-17 19:52:05 - NdkSample] larger
[2015-08-17 19:52:05 - NdkSample] Unknown Application ABI: 
[2015-08-17 19:52:05 - NdkSample] than
[2015-08-17 19:52:05 - NdkSample] Unknown Application ABI: 
[2015-08-17 19:52:05 - NdkSample] android:minSdkVersion
[2015-08-17 19:52:05 - NdkSample] Unknown Application ABI: 
[2015-08-17 19:52:05 - NdkSample] 15
[2015-08-17 19:52:05 - NdkSample] Unknown Application ABI: 
[2015-08-17 19:52:05 - NdkSample] in
[2015-08-17 19:52:05 - NdkSample] Unknown Application ABI: 
[2015-08-17 19:52:05 - NdkSample] ./AndroidManifest.xml
[2015-08-17 19:52:05 - NdkSample] Unknown Application ABI: 
[2015-08-17 19:52:05 - NdkSample] 
[2015-08-17 19:52:05 - NdkSample] Unknown Application ABI: 
[2015-08-17 19:52:05 - NdkSample] 
[2015-08-17 19:52:05 - NdkSample] Unknown Application ABI: 
[2015-08-17 19:52:05 - NdkSample] 
[2015-08-17 19:52:05 - NdkSample] Unknown Application ABI: 
[2015-08-17 19:52:05 - NdkSample] 
x86

 

解决方案:

  在jni的Application.mk中,使用 APP_PLATFORM 指定支持的最低SDK版本,要与你工程中的AndroidManifest.xml里的android:minSdkVersion相对应

APP_ABI := x86 armeabi
APP_PLATFORM := android-15

 

posted @ 2015-08-17 19:58  f9q  阅读(360)  评论(0编辑  收藏  举报