android {
defaultConfig {
ndk {
// 设置支持的SO库架构
abiFilters 'armeabi','x86', 'armeabi-v7a', 'x86_64', 'arm64-v8a'
}
}
//指定so库的位置,加载so库
sourceSets {
main {
jniLibs.srcDirs = ['libs']
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
}
}
网友评论