小编Div*_*pta的帖子

在应用程序更新中执行 java.lang.reflect.InvocationTargetException

我使用链接集成了 Google Play 核心库的应用内更新功能。

我正在使用立即更新选项,因为我们会定期修复对更新很重要的各种关键错误。

以下是应用程序未崩溃并成功更新应用程序以及崩溃时的情况。

  1. 当应用程序更新可用时,单击“更新”按钮,让更新正确完成而不会在两者之间中断 - 应用程序更新成功。
  2. 单击“更新”按钮,更新开始下载,但用户通过按“更新下载进度条”后出现的“x”按钮取消中间更新 - 应用更新取消。
  3. 再次尝试打开应用程序,它因以下错误而崩溃。

致命异常:java.lang.RuntimeException java.lang.reflect.InvocationTargetException com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:586) com.android.internal.os.ZygoteInit.main (ZygoteInit.java) :942) 由 java.lang.reflect.InvocationTargetException 引起 java.lang.reflect.Method.invoke (Method.java) com.android.internal.os.ZygoteInit.main (ZygoteInit.java:942) 由 android.content 引起。 IntentSender$SendIntentException android.app.Activity.startIntentSenderForResultInner (Activity.java:5019) com.google.android.play.core.appupdate.b.startUpdateFlowForResult (Unknown Source:5) co.behtarinternal.app.menu.MenuActivity$checkForAppUpdate$1 .onSuccess (MenuActivity.kt:239) co.behtarinternal.app.menu.MenuActivity$checkForAppUpdate$1.onSuccess (MenuActivity.kt:43) com.google.android.play.core.tasks.e.run (未知来源:27) com.android.internal.os.ZygoteInit.main (ZygoteInit.java:942)

我也提到了这个问题及其答案,但无法理解如何实施此解决方案。

我到处搜索了很多,但没有找到与这个问题相关的任何可行的解决方案。

如果你们中的任何人遇到过类似的问题,并且您的解决方案有效,请帮助我。

android in-app-update google-play-core

9
推荐指数
1
解决办法
905
查看次数

标签 统计

android ×1

google-play-core ×1

in-app-update ×1