Google Play控制台

编程入门 行业动态 更新时间:2024-10-27 00:29:36
本文介绍了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 上的源代码.

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.

现在看一下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控制台

本文发布于:2023-07-11 12:32:33,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1094075.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控制台   Google   Play

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!