我们前段时间使用 Google Play 核心库实现了应用内更新,最近(从 9 月 8 日开始)在我们的 Crashlytics 上显示了许多安装错误 (-100) 崩溃。
不确定 Google Play 那天是否推出了一些东西,但即使我们将库更新到 1.8.0 版(之前是 1.7.3 版),崩溃继续影响到我们每日活跃用户的 7%。
在崩溃的堆栈跟踪之后:
Caused by com.google.android.play.core.install.InstallException: Install Error(-100): An internal error happened in the Play Store. (https://developer.android.com/reference/com/google/android/play/core/install/model/InstallErrorCode#ERROR_INTERNAL_ERROR)
at com.google.android.play.core.appupdate.o.a(o.java:6)
at com.google.android.play.core.internal.o.a(o.java:28)
at com.google.android.play.core.internal.j.onTransact(j.java:20)
at android.os.Binder.execTransactInternal(Binder.java:1056)
at android.os.Binder.execTransact(Binder.java:1029)
问题是这个错误是什么?内部错误似乎是一个通用错误,它并没有说明如何修复它。它似乎与这个重复,但由于没有答案,我再次询问。
How to solve install status code -100 while working with In-App update in Android?
最佳答案
我有解决办法!
为了测试您的应用程序,您可以将两个版本的 apk 上传到 Enternal app sharing .
第一个版本 - 例如版本代码 1,第二个版本 - 版本代码 2。
Nexn 步骤 - 您需要从内部应用程序存储中获取第一个应用程序链接,然后点击此链接,在您的智能手机上安装此 apk。
下一步 - 跟随第二个应用程序的链接,但不要在打开的屏幕上按任何按钮,只需关闭市场屏幕。 3. 第三步 - 打开第一个应用程序并尝试按照应用程序中的更新步骤逻辑进行更新。
关于android - 在应用更新中在 Google Play Core 中安装错误(-100),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64330372/