Skip to content Skip to sidebar Skip to footer

Android Application Crashes After Proguard

Application crashes after proguard (proguard generated by eclipse IDE). logcat stacktrace W/SupportMenuInflater(13657): Cannot instantiate class: android.support.v7.widget.ShareAct

Solution 1:

In your proguard config, you have commented out the keep of the class that it can't find:

#-keep publicclassandroid.support.v7.widget.ShareActionProvider

Did you try uncommenting that and building again?

EDIT: since that didn't solve your problem, maybe try the catch all described here:

Android Proguard configuration for the v7 Support Library ActionBar

specifically, try adding:

-keep class android.support.v7.internal.** { *; }-keep interface android.support.v7.internal.** { *; }-keep class android.support.v7.** { *; }-keep interface android.support.v7.** { *; }

You can then make it more specific if that works, because this obviously just keeps all the support library classes, even ones you don't use.

Post a Comment for "Android Application Crashes After Proguard"