您的位置:首页 > 移动开发 > Android开发

Android Butterknife 所需要的依赖

2017-10-09 19:23 239 查看
•在项目的project 的build.gredle 文件中的dependencies标签下添加。

classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'


buildscript {
repositories {
jcenter()
}

dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
}
}

allprojects {
repositories {
jcenter()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}


•在module的build.gredle 文件中添加

apply plugin: 'android-apt'


•在module的build.gredle 文件中的dependencies标签中添加

compile 'com.jakewharton:butterknife:8.4.0'
apt 'com.jakewharton:butterknife-compiler:8.4.0'
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: