Obfuscate android.support.v7.widget.GridLayout issue

后端 未结 2 901
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-14 11:36

I\'m trying to obfuscate my android application, where I use android.support.v7.appcompat and android.support.v7.GridLayout, but the app is crashing with the following excep

2条回答
  •  感情败类
    2021-01-14 12:14

    I'm using something like that (it may be too broad though):

    # Preserve all fundamental application classes.
    -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.view.View
    -keep public class * extends android.preference.Preference
    -keep public class * extends android.content.BroadcastReceiver
    -keep public class * extends android.content.ContentProvider
    
    # Preserve Android support libraries` classes and interfaces
    -keep class android.support.** { *; }
    -keep interface android.support.** { *; }
    

提交回复
热议问题