Q: How to get ProGuards -libraryjars with filter working in Android Studio? My build.gradle file contains the following dependency:
compile files('../libs/ddogleg-0.8.jar')

The app is perfectly working with ProGuard disabled. After enabling ProGuard, a lot of warnings like the following break the build:
Warning: org.ddogleg.solver.impl.WrapRealRootsSturm: can't find referenced class org.ejml.data.Complex64F

According to the ProGuard docs at http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass , this issue should be fixed using a -libraryjars filter like the following:
-libraryjars ../libs/ddogleg-0.8.jar(!org/ddogleg/solver/impl/WrapRealRootsSturm.class)

The problem is, even if the filter is specified, ProGuard keeps happily complaining that it can't find the referenced class.
Now, if -dontwarn org.ddogleg.solver.impl.WrapRealRootsSturm is used instead of a -libraryjars filter, it's working. Hence at least I know that I'm editing the right file... 
It's kinda obvious that I'm doing it wrong. Do you have any ideas how to get the -libraryjars filter working?
Thank you for your support.

A: Add the following to your proguard config:
-keep class org.ejml.** { *; }
-dontwarn org.ejml.**
-keep class org.ddogleg.** { *; }
-dontwarn org.ddogleg.**

