Blankj / AndroidUtilCode

:fire: Android developers should collect the following utils(updating).
https://blankj.com/2016/07/31/android-utils-code/
Apache License 2.0
33.32k stars 10.69k forks source link

混淆后的一个错误 #1800

Open lightwind opened 8 months ago

lightwind commented 8 months ago

项目引入 implementation 'com.blankj:utilcodex:1.31.1' 后,添加混淆,运行直接报错: java.lang.IncompatibleClassChangeError: Class 'android.content.res.XmlBlock$Parser' does not implement interface 'pe.a' in call to 'int pe.a.next()' (declaration of 'com.blankj.utilcode.util.UtilsFileProvider' appears in /data/app/com.guoyao.bookmachineb-2/base.apk) at com.blankj.utilcode.util.UtilsFileProvider.f(SourceFile:32) at com.blankj.utilcode.util.UtilsFileProvider.a(SourceFile:39) at com.blankj.utilcode.util.UtilsFileProvider.attachInfo(SourceFile:1) at android.app.ActivityThread.installProvider(ActivityThread.java:5875) at android.app.ActivityThread.installContentProviders(ActivityThread.java:5467) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5406) at android.app.ActivityThread.-wrap2(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1551) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6141) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:802)