ndk-build编译出错:Android NDK: APP_PLATFORM not set. Defaulting to minimum supported version android-14

cmd命令行报错信息,如下:

PS D:\whx\AndroidStudioProject\VolumeII\Sample8_4\src\main\jni> ndk-build
Android NDK: APP_PLATFORM not set. Defaulting to minimum supported version android-14.
Android NDK: WARNING: APP_PLATFORM android-14 is higher than android:minSdkVersion 1 in D:/whx/AndroidStudioProject/VolumeII/Sample8_4/src/main/AndroidManifest.xml. NDK binaries will *not* be comptible with devices older than android-14. See https://android.googlesource.com/platform/ndk/+/master/docs/user/common_problems.md for more information.
Android NDK: NDK Application 'local' targets unknown ABI(s): all //鎸囨槑缂栬瘧鍜岃皟璇曠殑CPU鏋舵瀯
Android NDK: Please fix the APP_ABI definition in D:/whx/AndroidStudioProject/VolumeII/Sample8_4/src/main/jni/Application.mk
D:/development/tools/android-ndk-r16b/build//../build/core/setup-app.mk:75: *** Android NDK: Aborting    .  Stop.
PS D:\whx\AndroidStudioProject\VolumeII\Sample8_4\src\main\jni> ndk-build
Android NDK: APP_PLATFORM not set. Defaulting to minimum supported version android-14.
Android NDK: WARNING: APP_PLATFORM android-14 is higher than android:minSdkVersion 1 in D:/whx/AndroidStudioProject/VolumeII/Sample8_4/src/main/AndroidManifest.xml. NDK binaries will *not* be comptible with devices older than android-14. See https://android.googlesource.com/platform/ndk/+/master/docs/user/common_problems.md for more information.

解决办法:

1、首先,修改项目默认最小android版本,由最小14改为大于14的其他版本。

2、然后,修改Application.mk文件,删除APP_ABI := all 语句,即可。

 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值