Google Play控制台-崩溃报告:java.lang.RuntimeException [英] Google Play Console - Crash Report: java.lang.RuntimeException

查看:252
本文介绍了Google Play控制台-崩溃报告:java.lang.RuntimeException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从Google Play商店中的一个应用程序的用户那里收到了一些崩溃报告.

I received some crash reports from users of one of my apps in the Google Play Store.

这是我在Play商店中找到的纸叠:

This is the stack that I find the play store:

java.lang.RuntimeException: 
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2946)
  at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3081)
  at android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:78)
  at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:108)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:68)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1831)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loop (Looper.java:193)
  at android.app.ActivityThread.main (ActivityThread.java:6806)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:547)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:873)

这是设备:Xiaomi POCO F1 (beryllium), Android 9,启动时应用崩溃.

And this is the device: Xiaomi POCO F1 (beryllium), Android 9, the app crash on start up.

不幸的是,堆栈上没有对我的包裹的引用.

Unfortunately there isn't any reference to my package on the stack.

这是我的gradle设置:

This is my gradle settings:

compileSdkVersion 28
    buildToolsVersion '28.0.3'
    defaultConfig {
        applicationId "xxxxxxxxx"
        minSdkVersion 15
        targetSdkVersion 28
        multiDexEnabled true
    }

在我测试过的其他装有android 9的设备中,没有问题.可能与设备中存在的播放服务有关的问题吗? 有想法吗?

In the other devices with android 9 where I tested there are no problems. Could it be a problem related to the play service present in the device? Some idea?

谢谢

推荐答案

关于Android的伟大之处在于它是开源的.因此,您可以自己调查这些问题.

The great thing about Android is it is open source. So you can investigate these issues for yourself.

在这种情况下,让我们看一下ActivityThread的源代码.用Google搜索源ActivityThread.java" .对我来说,最好的结果是 android.googlesource.com 上的源代码.

In this case, let's look at the source for ActivityThread. Do a Google search for "source ActivityThread.java". For me the top result is the source code on android.googlesource.com.

现在看一下performLaunchActivity()方法.令人遗憾的是,堆栈跟踪中没有消息,但是当加载应用程序的启动活动时出现问题时,此方法似乎抛出RuntimeException.因此,似乎有某种消息传入,您的启动活动正在尝试启动,但是在加载应用程序时引发异常.不幸的是,我无法提供更多细节.

Now look at the performLaunchActivity() method. It's a shame there is no message in the stack trace, but it looks like this method throws a RuntimeException when there is a problem loading the launch activity for your app. So it looks like some sort of message is coming in, your launch activity is trying to start, but throwing an exception on loading your app. Unfortunately, I can't give you much more detail than that.

您可能想尝试与 Firebase Crashlytics 之类的解决方案集成,从而为您提供更多比Play控制台更详细的调查崩溃的工具.

You might want to try integrating with a solution like Firebase Crashlytics which gives you more detailed tools for investigating crashes than the Play Console offers.

这篇关于Google Play控制台-崩溃报告:java.lang.RuntimeException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆