Obfuscate android.support.v7.widget.GridLayout issue

后端 未结 2 900
佛祖请我去吃肉
佛祖请我去吃肉 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.** { *; }
    
    0 讨论(0)
  • 2021-01-14 12:40
    #### -- Support Library --
    
    # support-v4
    -dontwarn android.support.v4.**
    -keep class android.support.v4.app.** { *; }
    -keep interface android.support.v4.app.** { *; }
    -keep class android.support.v4.** { *; }
    
    # support-v7
    -dontwarn android.support.v7.**
    -keep class android.support.v7.internal.** { *; }
    -keep interface android.support.v7.internal.** { *; }
    -keep class android.support.v7.** { *; }
    
    0 讨论(0)
提交回复
热议问题