在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 { // Specifies the ABI configurations of your native // libraries Gradle should build and package with your APK. abiFilters 'armeabi', "armeabi-v7a" }
这样编译出来的库将是32位的库