mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
fix: specify NDK ABI filters for Android modules
This commit is contained in:
@@ -47,6 +47,11 @@ fun Project.configureAndroidModule(
|
||||
multiDexEnabled = true
|
||||
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
||||
ndk {
|
||||
abiFilters.clear()
|
||||
abiFilters += arrayOf("armeabi-v7a", "arm64-v8a")
|
||||
}
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
|
||||
@@ -13,10 +13,6 @@ android {
|
||||
cFlags += arrayOf("-std=c11", "-Wall", "-Wextra", "-Werror", "-Os", "-fno-stack-protector", "-Wl,--gc-sections")
|
||||
}
|
||||
}
|
||||
|
||||
ndk {
|
||||
abiFilters += arrayOf("x86", "x86_64", "armeabi-v7a", "arm64-v8a")
|
||||
}
|
||||
}
|
||||
|
||||
externalNativeBuild {
|
||||
|
||||
Reference in New Issue
Block a user