简体   繁体   English

Google Play控制台-崩溃报告:java.lang.RuntimeException

[英]Google Play Console - Crash Report: java.lang.RuntimeException

I received some crash reports from users of one of my apps in the Google Play Store. 我从Google Play商店中的一个应用程序的用户那里收到了一些崩溃报告。

This is the stack that I find the play store: 这是我在Play商店中找到的堆栈:

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)

And this is the device: Xiaomi POCO F1 (beryllium), Android 9 , the app crash on start up. 这是设备: Xiaomi POCO F1 (beryllium), Android 9 ,启动时应用崩溃。

Unfortunately there isn't any reference to my package on the stack. 不幸的是,堆栈上没有任何对我的包裹的引用。

This is my gradle settings: 这是我的gradle设置:

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

In the other devices with android 9 where I tested there are no problems. 在我测试过的其他装有android 9的设备中,没有问题。 Could it be a problem related to the play service present in the device? 可能与设备中存在的播放服务有关的问题吗? Some idea? 有想法吗

Thanks 谢谢

The great thing about Android is it is open source. Android的伟大之处在于它是开源的。 So you can investigate these issues for yourself. 因此,您可以自己调查这些问题。

In this case, let's look at the source for ActivityThread. 在这种情况下,让我们看一下ActivityThread的源代码。 Do a Google search for "source ActivityThread.java" . 在Google中搜索“ source ActivityThread.java” For me the top result is the source code on android.googlesource.com . 对我来说,最好的结果是android.googlesource.com上的源代码

Now look at the performLaunchActivity() method. 现在看一下performLaunchActivity()方法。 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. 令人遗憾的是,堆栈跟踪中没有消息,但是当加载应用程序的启动活动时出现问题时,此方法似乎抛出RuntimeException。 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. 不幸的是,我无法提供更多细节。

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. 您可能想尝试与Firebase Crashlytics之类的解决方案集成,与Play控制台提供的解决方案相比 ,该解决方案为您提供了更多调查崩溃的详细工具。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Google Play控制台中的java.lang.RuntimeException应用程序崩溃 - java.lang.RuntimeException App Crash from Google Play Console android pre-launch-report - java.lang.RuntimeException with com.google.android.finsky.services.IMarketCatalogService - android pre-launch-report - java.lang.RuntimeException with com.google.android.finsky.services.IMarketCatalogService java.lang.RuntimeException:在 Google Play 商店上传时执行 doInBackground() 时出错 - java.lang.RuntimeException: An error occurred while executing doInBackground() while upload in google play store 线程:崩溃并显示消息“ java.lang.RuntimeException:无法实例化活动” - Thread : Crash with the message “java.lang.RuntimeException: Unable to instantiate activity” Flutter ClassNotFoundException (java.lang.RuntimeException) 崩溃错误 - Flutter ClassNotFoundException (java.lang.RuntimeException) crash error java.lang.RuntimeException:eglSwapBuffers失败:EGL_SUCCESS报告 - java.lang.RuntimeException: eglSwapBuffers failed: EGL_SUCCESS report 我收到了关于粉碎 java.lang.RuntimeException 的报告: - I have got a report of crushes java.lang.RuntimeException: 获取java.lang.runtimeexception - getting java.lang.runtimeexception java.lang.runtimeexception 主要java.lang.RuntimeException - main java.lang.RuntimeException android-java.lang.RuntimeException - android - java.lang.RuntimeException
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM