app的build.gradle配置
dependencies {
implementation ‘com.jakewharton:butterknife:9.0.0-SNAPSHOT’
kapt ‘com.jakewharton:butterknife-compiler:9.0.0-SNAPSHOT’
}
项目的build.gradle配置
allprojects {
repositories {
maven { url “https://oss.sonatype.org/content/repositories/snapshots” }
}
}
混淆配置:
-keep class butterknife.** { ; }
-dontwarn butterknife.internal.*
-keep class *$$ViewBinder { ; }
-keepclasseswithmembernames class * {
@butterknife. ;
}
-keepclasseswithmembernames class * {
@butterknife. ;
}
Migrate to AndridX 后 ButterKnife8.8.1 编译报错的解决方案
最新推荐文章于 2022-08-17 15:33:46 发布