I have an android app that I am only trying to obfuscate with Proguard(hence, I have the -dontoptimize -dontshrink -dontpreverify flags). When I build with Proguard, proguard itself does not throw any errors, but then dex throws the following exception:
Exception in thread "pool-1-thread-1" com.android.dx.cf.code.SimException: com.android.dx.rop.cst.CstMethodRef cannot be cast to com.android.dx.rop.cst.CstInterfaceMethodRef
at com.android.dx.cf.code.BytecodeArray.parseInstruction(BytecodeArray.java:810)
...
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassCastException: com.android.dx.rop.cst.CstMethodRef cannot be cast to com.android.dx.rop.cst.CstInterfaceMethodRef
and the app crashes immediately from a NullPointerException.
I'm building in Android Studio, with the latest version of Proguard, on the default proguard file and some additional -keep options and -dontwarn options. Any ideas what is causing this? Thanks!