测试应用内更新
本指南介绍了如何在您的应用中测试应用内更新。
使用内部应用分享功能进行测试
您可以使用内部应用分享功能测试应用内更新,具体执行步骤如下所示:
确保您的测试设备安装了支持应用内更新的应用版本,且应用是使用内部应用分享网址安装的。
按照 Play 管理中心内的说明在内部分享应用。上传应用的某个版本,其版本号应高于测试设备上所安装的应用。
在测试设备上,点击更新后的应用版本对应的内部应用分享链接,但请勿从点击该链接后显示的 Play 商店页面安装应用。
从设备的应用抽屉或主屏幕打开应用。更新现在应可供您的应用使用,您可以测试应用内更新的实现。
问题排查
本部分介绍了当应用内更新在测试期间可能无法按预期运行时的一些可行性解决方案:
只有拥有应用的用户帐号可以使用应用内更新。因此,在使用帐号测试应用内更新之前,请确保您目前使用的帐号至少从 Google Play 下载过一次应用。
确保您用于测试应用内更新的应用与 Google Play 中提供的应用版本具有相同的应用 ID 和签名密钥。
Google Play 只能将应用更新到更高版本。因此,请确保您要测试的应用的版本号低于更新后的版本号。
将应用上传到内部应用分享渠道时,不支持 inAppUpdatePriority
字段。
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-07-06 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]