android - Instant App 无法下载完整的应用程序 | Google Play 认为应用已安装

标签 android google-play android-instant-apps

问题: 尝试使用

测试 Instant App 到 Full app 的转换时
InstantApps.showInstallPrompt(activity, intent, INSTALL_REQUEST_CODE, referer);

Google Play 商店发送错误通知

Can't Install App, APP_NAME is already installed on this device. If additional support is needed, get help troubleshooting. (Error code: -1).

免安装应用程序然后卡在下载进度屏幕上,永远不会下载该应用程序。

我们目前正在使用 Google Play 上的 Alpha channel 测试免安装应用。即时应用程序在未安装应用程序时会正确显示,完整版在直接下载时也能正常运行。

如果我在手机上安装即时应用程序的调试版本,然后在该版本中调用安装提示 api,它也可以正常工作。当您尝试从托管在 Google Play 上的即时应用程序安装它时,它只是不起作用。

正在使用的设备

  • Pixel 2 XL -(错误代码 -1)

  • 三星 Galaxy Note 3 -(错误代码 491)

  • Pixel 2 XL (8.1) -(错误代码 944)

最佳答案

我想通了,免安装应用程序的版本代码必须小于完整 apk 中的一个版本代码。我采用了这样的版本系统,因此每次我发布对已安装 apk 的更新时,我都可以更新即时应用程序 100 次,而无需更改已安装的版本代码。

基础版本代码 = 1

版本代码 = 基础版本代码 * 100

即时应用程序迭代 = 1

instantAppVersionCode = versionCode - (100 - instantAppIteration)

instantAppVersionName = versionName + "-"+ instantAppIteration + "-IA"

关于android - Instant App 无法下载完整的应用程序 | Google Play 认为应用已安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49565856/

相关文章:

android - 如何在不调整大小的情况下从流创建 Drawable?

cryptography - Android 购买数据的 Erlang 加密验证

android - 是否可以在模拟器上使用已发布的即时应用程序(BuzzFeed、Wish 等)?

android - 无法在 Play 商店提交即时应用程序 - 基本 APK 错误

android - Google Play 服务无法使用 Gradle 进行编译

android - 如何使用我自己的键盘而不是默认键盘?

android - 如何使用 Jsoup 从 <div> 中获取一系列 <p> 标签?

android - 上传的 apk 中的权限多于 list 文件中的权限

Android Play 上传失败,错误代码 : The maximum SDK version cannot be lower than the minimum SDK version

android - 即时应用程序在谷歌搜索中显示是否需要应用程序索引