相关疑难解决方法(0)

不支持的方法:运行项目时的AndroidProject.getPluginGeneration()

我正在尝试使用Android Studio 2.2运行我的项目但是我收到此错误

Unsupported method: AndroidProject.getPluginGeneration().
The version of Gradle you connect to does not support that method.
Run Code Online (Sandbox Code Playgroud)

我正在使用ButterKnife 8.4.0

我的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'
    }
}
Run Code Online (Sandbox Code Playgroud)

我的模块gradle文件:

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'
}
Run Code Online (Sandbox Code Playgroud)

为什么它不起作用,我该如何解决?

android android-studio android-studio-2.2

103
推荐指数
4
解决办法
6万
查看次数