我正在排除一个奇怪的bug,当错误行为发生时,我在logcat中看到了这一点。
--------- beginning of system
这是什么意思?我没有发现任何本机崩溃日志,或者任何异常,什么都没有。这行“系统的开始”恰好是在我的应用程序出错的时候。
发布于 2019-12-25 23:16:08
此问题是由firebase性能引起的。你可以在这里找到详细的信息:https://firebase.google.com/docs/perf-mon/get-started-android
我的日志记录如下:
--------- beginning of system
--------- beginning of main
--------- beginning of crash
12-25 17:53:40.583 25281 25581 D FirebasePerformance: Creating a new Non Verbose Session: 34bf424qwe12312318ac831ad5459a
12-25 17:53:40.584 25081 25081 D FirebasePerformance: Creating a new Non Verbose Session: 642b3efweqwsafqweqa5a73e1befasadcb2e
12-25 17:53:50.872 25181 25881 D FirebasePerformance: onResume(): com.example.app.ui.splash.SplashScreen: 10309636 microseconds
12-25 17:54:27.026 25381 25501 I FirebasePerformance: Did not receive a HTTP Response Code
12-25 17:54:27.026 25081 25201 W FirebasePerformance: Unable to process the PerfMetric due to missing or invalid values. See earlier log statements for additional information on the specific missing/invalid values.
你的错误和我的一样
发布于 2019-08-30 12:52:42
如果可能,在您的问题中打印完整日志,或参阅下面的文档:
读取堆栈跟踪
修复崩溃的第一步是确定崩溃发生的地方。如果您使用的是Play Console或logcat工具的输出,则可以使用报告详细信息中提供的堆栈跟踪。如果你没有可用的堆栈跟踪,你应该在本地重现崩溃,要么手动测试应用程序,要么联系受影响的用户,并在使用logcat时重现它。
以下跟踪显示了一个示例应用程序上的崩溃示例:
-开始崩溃AndroidRuntime:致命异常:主进程: com.android.developer.crashsample,PID: 3686 java.lang.NullPointerException:在android.view.View.performClick(View.java:6134) at android.view.View$PerformClick.run(View.java:23965) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:156) at android.app.ActivityThread.main(ActivityThread.java:6440)的com.android.developer.crashsample.MainActivity$1.onClick(MainActivity.java:27)的崩溃样本在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:746)的com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)的java.lang.reflect.Method.invoke(本机方法)-系统的开始
https://stackoverflow.com/questions/57720327
复制相似问题