n.a*_*001 5 android android-app-bundle
是否可以将通过 Android 应用程序包生成的多个 apk 合并到一个可安装/可分发的 apk 中?
我尝试通过 adb install-multiple 安装,但以这种方式,它是不可分发的。
可能您使用了 abi split 。只需将其放入universalApk true您的 split 中,如下所示,您将获得一个适用于所有 .apk 的 apk。
android {
splits {
// Configures multiple APKs based on ABI.
abi {
// Enables building multiple APKs per ABI.
enable true
// By default all ABIs are included, so use reset() and include to specify that we only
// want APKs for x86, armeabi-v7a, and mips.
reset()
// Specifies a list of ABIs that Gradle should create APKs for.
include "x86", "x86_64", "armeabi-v7a", "arm64-v8a"
// Specifies that we want to also generate a universal APK that includes all ABIs.
universalApk true
}
}
//...
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3507 次 |
| 最近记录: |