This commit is contained in:
mazengfei
2026-01-19 17:55:16 +08:00
parent 3b51e6f3f2
commit f473d1f174
6 changed files with 122 additions and 91 deletions
@@ -115,7 +115,11 @@ class CrashHandler private constructor(private val context: Context) :
collectDeviceInfo(this)
// 收集应用日志
append("\n\n").append(collectLogs())
try {
append("\n\n").append(collectLogs())
} catch (e: OutOfMemoryError) {
append("collectLogs发生OutOfMemoryError:${e.message}")
}
// 收集线程和异常信息
append("\n\n========== Thread & Exception Info ==========\n")