
在build.gradle中,defaultConfig里,externalNativeBuild代码块下添加
ndk {
// Specifies the ABI configurations of your native
// libraries Gradle should build and package with your APK.
abiFilters 'armeabi', "armeabi-v7a"
}
这样编译出来的库将是32位的库
本文介绍如何在build.gradle的defaultConfig中通过externalNativeBuild代码块下的ndk配置,指定编译32位的NDK库,包括armeabi和armeabi-v7a两种ABI类型。

在build.gradle中,defaultConfig里,externalNativeBuild代码块下添加
ndk {
// Specifies the ABI configurations of your native
// libraries Gradle should build and package with your APK.
abiFilters 'armeabi', "armeabi-v7a"
}
这样编译出来的库将是32位的库

被折叠的 条评论
为什么被折叠?