Issue: java.lang.NoSuchMethodError: No static method printStackTrace(Ljava/lang/Throwable;) in Google playstore

Issue: java.lang.NoSuchMethodError: No static method printStackTrace(Ljava/lang/Throwable;) in Google playstore

我在 Play 商店中收到的预发布报告如下:

错误日志-

java.lang.NoSuchMethodError: No static method printStackTrace(Ljava/lang/Throwable;)V in class Lcom/google/devtools/build/android/desugar/runtime/ThrowableExtension; or its super classes (declaration of 'com.google.devtools.build.android.desugar.runtime.ThrowableExtension' appears in /data/app/com.google.android.apps.mtaas.crawler-1/base.apk)
FATAL EXCEPTION: ControllerMessenger
Process: com.veblr.videomate, PID: 17578
java.lang.NoSuchMethodError: No static method printStackTrace(Ljava/lang/Throwable;)V in class Lcom/google/devtools/build/android/desugar/runtime/ThrowableExtension; or its super classes (declaration of 'com.google.devtools.build.android.desugar.runtime.ThrowableExtension' appears in /data/app/com.google.android.apps.mtaas.crawler-1/base.apk)
    at com.veblr.videomate.SpashScreenActiviy.updateAndroidSecurityProvider(Unknown Source)
    at com.veblr.videomate.VideoPlayerActivity.onCreate(Unknown Source)
    at android.app.Activity.performCreate(Activity.java:6013)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
    at android.support.test.runner.MonitoringInstrumentation.callActivityOnCreate(MonitoringInstrumentation.java:667)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2359)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2466)
    at android.app.ActivityThread.access00(ActivityThread.java:152)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1341)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.support.test.espresso.base.Interrogator.loopAndInterrogate(Interrogator.java:148)
    at android.support.test.espresso.base.UiControllerImpl.loopUntil(UiControllerImpl.java:466)
    at android.support.test.espresso.base.UiControllerImpl.loopUntil(UiControllerImpl.java:420)
    at android.support.test.espresso.base.UiControllerImpl.injectMotionEvent(UiControllerImpl.java:234)
    at android.support.test.espresso.action.MotionEvents.sendUp(MotionEvents.java:140)
    at android.support.test.espresso.action.MotionEvents.sendUp(MotionEvents.java:123)
    at android.support.test.espresso.action.Tap.sendSingleTap(Tap.java:170)
    at android.support.test.espresso.action.Tap.access0(Tap.java:31)
    at android.support.test.espresso.action.Tap.sendTap(Tap.java:46)
    at android.support.test.espresso.action.GeneralClickAction.perform(GeneralClickAction.java:136)
    at android.support.test.espresso.ViewInteraction$SingleExecutionViewAction.perform(ViewInteraction.java:355)
    at android.support.test.espresso.ViewInteraction.doPerform(ViewInteraction.java:242)
    at android.support.test.espresso.ViewInteraction.access0(ViewInteraction.java:62)
    at android.support.test.espresso.ViewInteraction.call(ViewInteraction.java:149)
    at android.support.test.espresso.ViewInteraction.call(ViewInteraction.java:146)
    at java.util.concurrent.FutureTask.run(FutureTask.java:237)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:135)
    at android.app.ActivityThread.main(ActivityThread.java:5538)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)

这是报告中显示的我的 logcat。 我无法找出我的应用程序有什么问题。

这是显示错误的设备:

显然,至少还有其他人遇到与您相同的问题:App crash due to not found exception method printStateTrace 在 Android 问题跟踪器中。

也许如果您可以提供更多信息,他们将能够调查该问题。

另一个similar issue是因为Gradle插件中的错误,所以也许你可以尝试更新它。