Skip to content Skip to sidebar Skip to footer

Proguard Causing Nosuchmethodexception

Class c = Class.forName('co.uk.MyApp.dir.TargetClass'); Method main = c.getDeclaredMethod('main', Report_Holder.class); Throws a 'java.lang.NoSuchMethodException.main[cla

Solution 1:

Once you know how to use proguard, you should add the option -keepattributes Signature . this is necesary when using generics (collections).

For all methods beeing called via reflection, you must explictly exclude them from obfsucation. use the option to output the obfuscation map file, to see if your rules had the desired effect.

Post a Comment for "Proguard Causing Nosuchmethodexception"