ButterKnife 8.5.1 依赖配置
发布时间:2020-12-14 01:51:55 所属栏目:百科 来源:网络整理
导读:官方:github 1.Project的build.gradle文件中增加classpath // Top-level build file where you can add configuration options common to all sub -projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tool
官方:github 1.Project的build.gradle文件中增加classpath // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
classpath 'com.jakewharton:butterknife-gradle-plugin:8.5.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
2.在Module的build.gradle文件中增加plugin apply plugin: 'com.jakewharton.butterknife'
3.在Dependencies中添加依赖配置 compile 'com.jakewharton:butterknife:8.5.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1' (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |