测试生效的方法
在module的build.gradle 中指定
android {
compileSdkVersion 29
buildToolsVersion "29.0.0"
defaultConfig {
minSdkVersion 15
targetSdkVersion 29
versionCode 1
versionName "1.0"
externalNativeBuild {
cmake {
arguments "-DANDROID_TOOLCHAIN=gcc"
cppFlags ""
abiFilters 'arm64-v8a'
}
}
}
命令行的有
android {
compileSdkVersion 29
buildToolsVersion “29.0.0”
defaultConfig {
minSdkVersion 15
targetSdkVersion 29
versionCode 1
versionName "1.0"
externalNativeBuild {
cmake {
arguments "-DANDROID_TOOLCHAIN=gcc"
cppFlags ""
abiFilters 'arm64-v8a'
}
}
}