Add these lines to the proguard configuration file (proguard-android.txt)
-keep class android.support.v4.** { *; } -dontwarn android.support.v4.** -dontwarn javax.activation.** -dontwarn javax.security.** -dontwarn java.awt.** -libraryjars <java.home>/lib/rt.jar -keep class javax.** {*;} -keep class com.sun.** {*;} -keep class myjava.** {*;} -keep class org.apache.harmony.** {*;} -keep public class Mail {*;} -dontshrink
See Troubleshoot Proguard
Please note that if you use
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt
Your configuration file is not proguard-android.txt in the root of your project, but a common proguard configuration file in the android sdk folder. If you want to use proguard-android.txt at the root of your project, you should use
proguard.config=proguard-project.txt
in the project.properties file.
Silverstorm
source share