gpt4 book ai didi

java - 修复 Android studio 中的错误

转载 作者:行者123 更新时间:2023-12-02 01:10:52 25 4
gpt4 key购买 nike

我想让你知道我是 Android 开发 的新手。

我开发了一个 Android 应用程序。在发布该应用程序之前,我在我的设备和其他几台设备上对其进行了多次测试,以检查它是否崩溃。该应用程序通过了所有测试。

现在应用程序在某些用户设备上崩溃了,如何知道用户设备上应用程序崩溃的原因。 我对如何解决这样的问题有点困惑。

private static void logInitError(@NonNull String message) {
CrashLog.log(message);
CrashLog.log(locationManager == null ? "!!! NOT INITIALISED !!!" : "locationManager initialised");
DebugTestException debugException = new DebugTestException();
CrashLog.logException(debugException);
}

private static void logInitErrorNoProvider(@NonNull String message) {
CrashLog.log(message);
CrashLog.log(locationManager == null ? "!!! NOT INITIALISED !!!" : "locationManager initialised");
DebugTestException debugException = new DebugTestException();
CrashLog.logException(debugException);
}

最佳答案

监控应用的最佳方法是使用 firebase crashlytics。

您将从您的应用程序中获得实时分析,请参阅the official guide以便实现。

关于java - 修复 Android studio 中的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57686341/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com