Google Play 商店:如何上传更多 APK 以支持不同的 CPU 架构
Google Play Store : How to upload more APKs to support different CPU architectures
我希望每个 APK 支持不同的 CPU 架构(例如 ARM、x86 和 MIPS)。如何上传更多 APK,我已经切换到高级模式,但是 上传新 APK 到 Alpha 按钮取代了之前的 APK。
附件是我的控制台在 APK 部分的外观。
感谢您的帮助。
供参考,这是我的gradle:
android {
compileSdkVersion 24
buildToolsVersion "24.0.2"
defaultConfig {
applicationId "app_id_here"
minSdkVersion 16
targetSdkVersion 24
versionCode 1
versionName "1.0"
multiDexEnabled true
jackOptions {
enabled false
additionalParameters('jack.incremental': 'true')
}
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dexOptions {
javaMaxHeapSize '4096m'
}
splits {
abi {
enable true
reset()
include 'x86', 'x86_64', 'arm64-v8a', 'armeabi-v7a', 'armeabi'
universalApk false
}
}
}
您需要构建多个 apk 才能上传到 Play 商店。
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.
// 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", "armeabi-v7a", "mips"
// Specifies that we do not want to also generate a universal APK that includes all ABIs.
universalApk false
}
}
}
如上所示配置您的gradle。
然后上传。如果您想为有限的受众上传您的应用程序,这将很有用。
如果您想授予所有用户访问权限,则不需要任何此类配置。
查看这篇文章。在 Google play https://blog.mindorks.com/publishing-multiple-apks-on-google-play-b06bb9078aae#.qqr2yqjfv
上发布多个 APK
导航到应用的“APK”部分,然后点击右上角的“切换到高级模式”。
您会注意到“将新 APK 上传到正式版”按钮向下移动,并且屏幕上出现额外的操作。
现在在高级模式下,控制台在同一轨道上接受多个 APK,只需点击“上传新 APK”按钮,然后像在简单模式下一样一个接一个地按照流程进行操作,然后单击“保存草稿”。控制台将显示兼容设备的数量相对较少,但不要担心,因为它显示仅与特定 ABI 兼容的设备。
我希望每个 APK 支持不同的 CPU 架构(例如 ARM、x86 和 MIPS)。如何上传更多 APK,我已经切换到高级模式,但是 上传新 APK 到 Alpha 按钮取代了之前的 APK。
附件是我的控制台在 APK 部分的外观。
感谢您的帮助。
供参考,这是我的gradle:
android {
compileSdkVersion 24
buildToolsVersion "24.0.2"
defaultConfig {
applicationId "app_id_here"
minSdkVersion 16
targetSdkVersion 24
versionCode 1
versionName "1.0"
multiDexEnabled true
jackOptions {
enabled false
additionalParameters('jack.incremental': 'true')
}
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dexOptions {
javaMaxHeapSize '4096m'
}
splits {
abi {
enable true
reset()
include 'x86', 'x86_64', 'arm64-v8a', 'armeabi-v7a', 'armeabi'
universalApk false
}
}
}
您需要构建多个 apk 才能上传到 Play 商店。
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.
// 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", "armeabi-v7a", "mips"
// Specifies that we do not want to also generate a universal APK that includes all ABIs.
universalApk false
}
}
}
如上所示配置您的gradle。 然后上传。如果您想为有限的受众上传您的应用程序,这将很有用。 如果您想授予所有用户访问权限,则不需要任何此类配置。
查看这篇文章。在 Google play https://blog.mindorks.com/publishing-multiple-apks-on-google-play-b06bb9078aae#.qqr2yqjfv
上发布多个 APK导航到应用的“APK”部分,然后点击右上角的“切换到高级模式”。
您会注意到“将新 APK 上传到正式版”按钮向下移动,并且屏幕上出现额外的操作。
现在在高级模式下,控制台在同一轨道上接受多个 APK,只需点击“上传新 APK”按钮,然后像在简单模式下一样一个接一个地按照流程进行操作,然后单击“保存草稿”。控制台将显示兼容设备的数量相对较少,但不要担心,因为它显示仅与特定 ABI 兼容的设备。