I never used proguard before, and now force to use it due to the nasty Samsung bug: https://code.google.com/p/android/issues/detail?id=78377
So, basically, I followed all the explanations, and added this in my gradle file:
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
and my file contains the line I need to workaround the above bug:
-keep class !android.support.v7.internal.view.menu.**,** {*;}
Note: I have followed many and many proguard template files, and tried a lot of code there, so don't know what to do.
The app compiles just fine in debug, on my phone, but once I try to compile the apk and upload it, I got this error:
IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
Please, do not point me to the style.xml, the Theme IS Appcompat, and it works fine on debug.
Thank a lot for any help, or hint.