My gradle project contains one main module and one library
One library class contains an enumeration; I am excluded from obfuscation proguard because it is used in the main project.
Gradle crashes during assembly with an “error. Cannot find the character variable MyEnum”, and the same error occurs for another interface, which is also declared inside the class
I decompiled the classes.jar file of my library, which was generated during the assembly, and the enumeration is located exactly where it cannot be found as MyClass $ MyEnum. The class "MyClass" also remains in place after compilation.
this is the proguard code i used for my listing:
-keep,allowoptimization enum com.mypackage.MyClass$MyEnum { public static **[] values(); public static ** valueOf(java.lang.String); **[] $VALUES; public *; }
I am not allowed to post any code
Is there any special trick with inner classes when using proguard ??
source share