android - “Force Close Application” after enabling Proguard -
it working app out proguard now, enabled proguard , exported signed app using android-tools > export signed application
then copied .apk on sd card , tried install on device. application stopped working
my proguard.cfg code
:
-dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -verbose -dontoptimize -dontpreverify -keepattributes *annotation* -keep public class * extends android.app.activity -keep public class * extends android.app.application -keep public class * extends android.app.service -keep public class * extends android.content.broadcastreceiver -keep public class * extends android.content.contentprovider -keep public class * extends android.app.backup.backupagent -keep public class * extends android.preference.preference -keep public class * extends android.support.v4.app.fragment -keep public class * extends android.app.fragment -keepclasseswithmembernames class * { native <methods>; } -keep public class * extends android.view.view { public <init>(android.content.context); public <init>(android.content.context, android.util.attributeset); public <init>(android.content.context, android.util.attributeset, int); public void set*(...); } -keepclasseswithmembers class * { public <init>(android.content.context, android.util.attributeset); } -keepclasseswithmembers class * { public <init>(android.content.context, android.util.attributeset, int); } -keepclassmembers class * extends android.app.activity { public void *(android.view.view); } -keepclassmembers enum * { public static **[] values(); public static ** valueof(java.lang.string); } -keep class * implements android.os.parcelable { public static final android.os.parcelable$creator *; } -keepclassmembers class **.r$* { public static <fields>; } -dontwarn android.support.** -dontwarn org.acra.** -dontwarn com.google.** -dontwarn com.jeremyfeinstein.**
i using sliding menu , google analyic , acra crash report
.any appreciated.
i solved problem following cod: added cod file proguard.cfg:
-dontwarn org.acra.** -keep class org.acra.** { *; } -dontwarn com.google.** -keep class com.google.analytics.tracking.android.** { *; } -dontwarn com.jeremyfeinstein.** -keep class com.jeremyfeinstein.slidingmenu.lib.** { *; }
Comments
Post a Comment