Android Studio配置使用butterknife错误

Module gradle
apply plugin: 'com.android.library'
apply plugin: 'com.jakewharton.butterknife'
android {
compileSdkVersion 26
buildToolsVersion "26.0.2"

defaultConfig {
    minSdkVersion 15
    targetSdkVersion 26
    versionCode 1
    versionName "1.0"

    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.0.0-alpha1'
testCompile 'junit:junit:4.12'
compile project(':latte-annotations')
//字体图标
compile 'com.joanzapata.iconify:android-iconify-fontawesome:2.2.2'
compile 'com.joanzapata.iconify:android-iconify-ionicons:2.2.2'
//Fragmenttation第三方库
compile 'me.yokeyword:fragmentation:1.3.5'
compile 'me.yokeyword:fragmentation-swipeback:1.3.5'
//butterknife
compile 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
}

App gradle

buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.jakewharton:butterknife-gradle-plugin:8.8.1'
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}

gradle wrapper.properties

#Mon Dec 28 10:00:20 PST 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https://services.gradle.org/distributions/gradle-2.14.1-all.zip

图片说明
配置后给出错误提示
Error:(1, 0) Minimum supported Gradle version is 3.3. Current version is 2.14.1. If using the gradle wrapper, try editing the distributionUrl in E:\AndroidCode\TaoJB\gradle\wrapper\gradle-wrapper.properties to gradle-3.3-all.zip
Open File

gradle版本和butterknife版本不一致,提示让你升到3.3.要么降低butterknife版本,要么升级gradle

希望对你有帮助 :

https://blog.csdn.net/juladoe/article/details/64437441

最新版本的butterknife对gradle版本是有要求的,而且新版本的butterknife还改变了语法,如果已经写了大量的代码,要一个一个改,建议不要升级,除非项目需要

compile 'com.jakewharton:butterknife:7.0.1'
把这个添加进去 把项目中的包含 butterknife:8.8.1相关的都删除掉
版本问题