I am using Kofax in our project, and it uses a lot of Reflection and Robogiuice. We are using Dexguard to obfuscate our code. One of the problems we have is the private constructor was stripped. I already have this in my code:
-keepclassmembers class * {
private <init>(...);
}
But it does not help, some of my class's constructors are still stripped.
1) Could not find a suitable constructor in >com.kofax.mobile.sdk.capture.MainModule$ReflectionMakeSize. Classes must have >either one (and only one) constructor annotated with @Inject or a zero-argument >constructor that is not private. at >com.kofax.mobile.sdk.capture.MainModule$ReflectionMakeSize.class(Unknown >Source) at >com.kofax.mobile.sdk.capture.MainModule.configure(:145)
Anyone knows how to fix this?
EDIT.
I just found out that, only constructor of the private static class
are removed, other class's constructor still there.
Anyone knows why?