我的 android 应用程序因某个用户的以下堆栈而崩溃。
java.lang.NoClassDefFoundError:
at ch.qos.logback.classic.spi.LoggingEvent.getMDCPropertyMap (Unknown Source)
at ch.qos.logback.classic.spi.LoggingEvent.prepareForDeferredProcessing (Unknown Source)
at ch.qos.logback.core.OutputStreamAppender.subAppend (Unknown Source)
at ch.qos.logback.core.FileAppender.subAppend (Unknown Source)
at ch.qos.logback.core.OutputStreamAppender.append (Unknown Source)
at ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend (Unknown Source)
at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders (Unknown Source)
at ch.qos.logback.classic.Logger.appendLoopOnAppenders (Unknown Source)
at ch.qos.logback.classic.Logger.callAppenders (Unknown Source)
at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend (Unknown Source)
at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus (Unknown Source)
at ch.qos.logback.classic.Logger.info (Unknown Source)
at com.my.app.ApplicationEx.onCreate (ApplicationEx.java:156)
at android.app.Instrumentation.callApplicationOnCreate (Instrumentation.java:1014)
at android.app.ActivityThread.handleBindApplication (ActivityThread.java:4753)
at android.app.ActivityThread.access$1500 (ActivityThread.java:166)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1343)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:136)
at android.app.ActivityThread.main (ActivityThread.java:5590)
at java.lang.reflect.Method.invokeNative (Native Method)
at java.lang.reflect.Method.invoke (Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1268)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1084)
at dalvik.system.NativeStart.main (Native Method)
此崩溃仅发生在单个用户(Samsung Galaxy Tab E 9.6 (gtelwifi)、Android 4.4)。这不会在其他设备中重现。
我使用 slf4j 登录我的 android 应用程序,这就是我导入日志库的方式。
implementation 'org.slf4j:slf4j-api:1.7.25'
implementation 'com.github.tony19:logback-android:1.3.0-2'
这次崩溃的原因可能是什么?