ProGuard not working as expected after Android Studio update <p>Since I updated Android Studio to version <code>1.2.1.1</code> I have the following problem: </p> <p>Whenever I build a release version / build variant of my app, I get a <code>NoClassDefFoundError</code> on the <a href="https://github.com/adjust/android_sdk">Adjust library</a> I have included in the project as a library module. </p> <p>The stracktrace: </p> <pre><code> java.lang.NoClassDefFoundError: com.adjust.sdk.AdjustConfig at de.myapp.GlobalApp.prepareAdjust(GlobalApp.java:111) at de.myapp.GlobalApp.onCreate(GlobalApp.java:71) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:999) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4151) at android.app.ActivityThread.access$1300(ActivityThread.java:130) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1255) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4745) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) at dalvik.system.NativeStart.main(Native Method) </code></pre> <p>Corresponding part of my code: </p> <pre><code> AdjustConfig config = new AdjustConfig(this, someString, otherString); </code></pre> <p>When I turn off Proguard with <code>minifyEnabled false;</code> in my <code>build.gradle</code>, the error is gone. </p> <p>My proguard-rules.pro looks like this: </p> <pre><code>-keepattributes ** -keep class !android.support.v7.internal.view.menu.**,** {*;} -dontpreverify -dontoptimize -dontshrink -dontwarn ** </code></pre> <p>These Proguard rules might look a bit strange because they do but one thing: obfuscate classes in the <code>android.support.v7.internal.view.menu</code> package. This procedure is a workaround for a <a href="http://developer.samsung.com/forum/board/thread/view.do?boardName=General&amp;messageId=248142">a known issue of the Android Support library on Samsung devices</a>. </p> <p>Even more confusingly, the <code>NoClassDefFoundError</code> only occurs only devices running Android &lt; <code>5.0</code>. </p> <p>Any ideas on what the reason could be or how to fix this?</p>