0
 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 中排除。

在此处输入图像描述

大图: http: //picbox.im/image/172d169741-proguard.png

4

0 回答 0