Android Studio使用Butterknife混淆代码出错解决办法

在proguard-rules.pro混淆规则文件中添加:

-keep class butterknife.** { *; }
-dontwarn butterknife.internal.**
-keep class **$$ViewBinder { *; }

-keepclasseswithmembernames class * {
    @butterknife.* <fields>;
}

-keepclasseswithmembernames class * {
    @butterknife.* <methods>;
}

 

posted @ 2016-06-02 09:50  风云行丶  阅读(7027)  评论(0编辑  收藏  举报