Android design support library proguard rules

后端 未结 2 1797
栀梦
栀梦 2021-01-01 16:10

Have been trying to find some information about the rules needed for the new design support library to work passing proguard. I couldn\'t find any information about it.

2条回答
  •  死守一世寂寞
    2021-01-01 16:45

    I meet this error error while parsing android/support/design/R$anim.class.

    End it with this code:

    # support design
    -dontwarn android.support.design.**
    -keep class android.support.design.** { *; }
    -keep interface android.support.design.** { *; }
    -keep public class android.support.design.R$* { *; }
    

提交回复
热议问题