1.在项目的build.gradle里面配置,
添加 classpath'com.neenbedankt.gradle.plugins:android-apt:1.8'
2.在Module里的build.gradle里面
添加 apply plugin: 'com.android.application'
apply plugin:'com.neenbedankt.android-apt'
android{...}
dependencies {
compile'com.jakewharton:butterknife:8.4.0'
apt'com.jakewharton:butterknife-compiler:8.4.0'
}
本文详细介绍如何在Android项目中集成ButterKnife库,并完成必要的Gradle配置步骤。包括添加依赖、配置插件等关键操作。
1838

被折叠的 条评论
为什么被折叠?



