build(android): release 包显式剔除 x86_64 原生库

This commit is contained in:
Zhou Weidong authored and trae-solo-agent committed 2026-10-21 19:13:27 +08:00
1 parent 91a622733c
commit 86588d7faa
1 file changed
+7
+7
View File
@@ -46,6 +46,13 @@ kotlin {
}
}
// 生产包不允许出现 x86_64:部分插件 AAR 会带入少量 x86_64 原生库,这里显式剔除。
androidComponents {
onVariants(selector().withBuildType("release")) { variant ->
variant.packaging.jniLibs.excludes.add("lib/x86_64/**")
}
}
flutter {
source = "../.."
}