使用多个密钥库文件生成多个apk

我正在Android Studio中使用following instructions生成多个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 and x86_64.

      // Resets the list of ABIs that Gradle should create APKs for to none.
      reset()

      // Specifies a list of ABIs that Gradle should create APKs for.
      include "x86","x86_64"

      // Specifies that we do not want to also generate a universal APK that includes all ABIs.
      universalApk false
    }
  }
}

问题是:如何为每个不同的APK分配不同的 keystore ?我在官方指南中找不到任何说明...

loyal_886 回答:使用多个密钥库文件生成多个apk

您好,@ Lore您无法创建或定义用于扩展的其他密钥库或密钥库的详细信息,因为这只是同一 APK 的扩展,对于扩展,您可以按照以下文档进行操作: Configure build variants

您可以定义密钥库数据并为不同的样式创建 apk Link for define keystore data in product flavor

本文链接:https://www.f2er.com/3145725.html

大家都在问