Android NDK: WARNING: APP_PLATFORM android-14 is larger than android:minSdkVersion 8

本文介绍了解决在Eclipse中使用NDK编译时出现的关于APP_PLATFORM与minSdkVersion不一致的警告的方法。只需在Application.mk文件中添加一行代码设置正确的APP_PLATFORM值即可。

在使用Eclipse 直接编译NDK,有时候会报类似以下错误

Android NDK: WARNING: APP_PLATFORM android-14 is larger than android:minSdkVersion 8


这是因为NDK指定的版本与minSdkVersion不一致的问题,这本身只是一个警告,但是在eclipse下就会编译报错,那么如何修复呢?


只需要在你的工程的:

Application.mk

文件中添加如下代码即可:

[cpp]  view plain copy
  1. APP_PLATFORM := android-8  

其中8就是指的 minSdkVersion ,根据自己的实际情况进行替换!
Android NDK: android-16 is unsupported. Using minimum supported version android-21. Android NDK: WARNING: APP_PLATFORM android-21 is higher than android:minSdkVersion 1 in /Users/zhuqingbin/Downloads/Android-TiffBitmapFactory-master/tiffbitmapfactory/src/main/AndroidManifest.xml. NDK binaries will *not* be compatible with devices older than android-21. See https://android.googlesource.com/platform/ndk/+/master/docs/user/common_problems.md for more information. Android NDK: WARNING:/Users/zhuqingbin/Downloads/Android-TiffBitmapFactory-master/tiffbitmapfactory/src/main/jni/Android.mk:tiff: non-system libraries in linker flags: /Users/zhuqingbin/Downloads/Android-TiffBitmapFactory-master/tiffbitmapfactory/src/main/jni/libs/arm64-v8a/libjpeg.a Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the Android NDK: current module Android NDK: WARNING:/Users/zhuqingbin/Downloads/Android-TiffBitmapFactory-master/tiffbitmapfactory/src/main/jni/Android.mk:tiff: non-system libraries in linker flags: /Users/zhuqingbin/Downloads/Android-TiffBitmapFactory-master/tiffbitmapfactory/src/main/jni/libs/armeabi-v7a/libjpeg.a Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the Android NDK: current module make: Nothing to be done for 'Android.mk'.
最新发布
10-16
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值