Android Studio 3.2.1集成com.jakewharton:butterknife-compiler:8.8.1

Android Studio 3.2.1集成com.jakewharton:butterknife-compiler:8.8.1
Android Studio 3.2.1集成com.jakewharton:butterknife-compiler:8.8.1_第1张图片
配置:
在Project的 build.gradle 中添加如下代码:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath ‘com.android.tools.build:gradle:3.1.1’
classpath ‘com.jakewharton:butterknife-gradle-plugin:8.8.1’ //添加这一行
}
}

在App的 build.gradle 中添加如下代码:
apply plugin: ‘com.jakewharton.butterknife’

dependencies中添加:
dependencies {
implementation ‘com.jakewharton:butterknife:8.8.1’
annotationProcessor ‘com.jakewharton:butterknife-compiler:8.8.1’
}
Android Studio 3.2.1集成com.jakewharton:butterknife-compiler:8.8.1_第2张图片

你可能感兴趣的:(Android)