I'm trying to run my Project with Android Studio 2.2 but I get this error
Unsupported method: AndroidProject.getPluginGeneration().
The version of Gradle you connect to does not support that method.
I am using ButterKnife 8.4.0
My app gradle.file:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
}
}
My module gradle file:
apply plugin: 'com.android.application'
apply plugin: 'android-apt'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "xxx.xx"
minSdkVersion 10
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
}
dependencies {
compile 'com.jakewharton:butterknife:8.4.0'
apt 'com.jakewharton:butterknife-compiler:8.4.0'
}
Why does it not work and how do I solve it?