I am running ButterKnife 8.5.1 in my Android application. If I try to make ProGuard settings for ButterKnife, I still have crashes in my version. There is a problem on the official ButterKnife Github page that says you are making the following settings:
-keep class butterknife.** { *; }
-dontwarn butterknife.internal.**
-keep class **$$ViewBinder { *; }
-keepclasseswithmembernames class * {
@butterknife.* <fields>;
}
-keepclasseswithmembernames class * {
@butterknife.* <methods>;
}
Alternatively, it is written to use the following settings:
-dontwarn butterknife.internal.**
-keep class **$$ViewInjector { *; }
-keepnames class * { @butterknife.InjectView *;}
None of them work with my configuration. I still had crashes when accessing Views related to ButterKnife. So, are there any new settings you need to make for ButterKnife 8?
source
share