FATAL EXCEPTION: pool-2-thread-3
java.lang.ExceptionInInitializerError
at qu.a(Unknown Source)
at pq.a(Unknown Source)
at ta.a(Unknown Source)
at td.a(Unknown Source)
at tp.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
at java.lang.Thread.run(Thread.java:856)
Caused by: java.lang.NoClassDefFoundError: org.slf4j.helpers.Log4jLoggerFactory$PrivateManager
at org.slf4j.helpers.Log4jLoggerFactory.getContext(Unknown Source)
at org.slf4j.helpers.Log4jLoggerFactory.getLogger(Unknown Source)
at org.slf4j.LoggerFactory.getLogger(Unknown Source)
at avy.a(Unknown Source)
at avy.a(Unknown Source)
at avv.b(Unknown Source)
at asp.<clinit>(Unknown Source)
... 8 more
为了解决这个问题,我将以下几行添加到了proguard:
-keep class org.slf4j.**
{
*;
}
然而,当使用APKAnalyser分析apk时,似乎Log4jLoggerFactory $ PrivateManager实际上包含在apk中并从ProGuard中排除。