-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoClassDefFoundError: Failed resolution of: Lorg/apache/logging/log4j/LogManager #326
Comments
Hi @FutureHere ! Can you try to narrow down the issue by disabling ProGuard features and/or adding keep rules? For example: you can disable GSON optimization with You can also try disabling obfuscation, optimization and shrinking generally to see if one of those are causing the problem: You can also try adding keep rules for the missing class. If you cannot solve the issue via configuration, can you provide a reproducible sample? |
How can i use proguard without log4j ? we cant dependent log4j in our app ,so How can i use proguard without log4j ? Whether it can be set? |
1 similar comment
How can i use proguard without log4j ? we cant dependent log4j in our app ,so How can i use proguard without log4j ? Whether it can be set? |
addConfigurationDebugging? |
Thanks for the extra information! It looks like log4j loggers were accidentally added to code that is injected into the app for GSON optimization and configuration debugging. Should be solved by #328 |
After upgrade Proguard version 6.0.3 to 7.3.0
apk crash
mapping:
proguard.optimize.gson._GsonUtil -> b.a.a.a:
{"fileName":"_GsonUtil.java","id":"sourceFile"}
org.apache.logging.log4j.Logger logger -> a
43:43:void () ->
63:75:com.google.gson.TypeAdapter getTypeAdapter(com.google.gson.Gson,java.lang.Class,java.lang.Object) -> a
95:108:com.google.gson.TypeAdapter getTypeAdapter(com.google.gson.Gson,com.google.gson.reflect.TypeToken,java.lang.Object) -> a
116:120:java.lang.reflect.Type getRuntimeTypeIfMoreSpecific(java.lang.reflect.Type,java.lang.Object) -> a
131:131:boolean isCustomTypeAdapter(com.google.gson.TypeAdapter) -> a
45:45:void () ->
I think the reason is Gson optimization
can u help me ? Thanks
The text was updated successfully, but these errors were encountered: