fix build error and filter target arch (#443)

This commit is contained in:
ForestL
2025-02-10 19:56:23 +08:00
committed by GitHub
parent 57f043408f
commit a012d81cd1
2 changed files with 17 additions and 7 deletions

View File

@@ -52,6 +52,10 @@ subprojects {
resValue("string", "release_name", "v$versionName")
resValue("integer", "release_code", "$versionCode")
ndk {
abiFilters += listOf("arm64-v8a", "armeabi-v7a", "x86", "x86_64")
}
externalNativeBuild {
cmake {
abiFilters("arm64-v8a", "armeabi-v7a", "x86", "x86_64")
@@ -164,6 +168,8 @@ subprojects {
abi {
isEnable = true
isUniversalApk = true
reset()
include("arm64-v8a", "armeabi-v7a", "x86", "x86_64")
}
}
}
@@ -189,4 +195,4 @@ tasks.wrapper {
file("gradle/wrapper/gradle-wrapper.properties")
.appendText("distributionSha256Sum=$sha256")
}
}
}