Butterknife: build error with butterknife8.8.1 on gradle 3.0.1

Created on 15 Feb 2018  路  2Comments  路  Source: JakeWharton/butterknife

  • What went wrong:
    A problem occurred configuring project ':app'.

    Failed to notify project evaluation listener.
    com.android.build.gradle.api.BaseVariant.getOutputs()Ljava/util/List;

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at https://help.gradle.org

Most helpful comment

thanks for reply, but after I use 9.0.0-SNAPSHOT, it reports java.lang.NullPointerException
I'm using kotlin, so the code is as below in app gradle:
implementation "com.jakewharton:butterknife:$butterknife_version"
kapt "com.jakewharton:butterknife-compiler:$butterknife_version"

and as below in project gradle:
ext.butterknife_version = '9.0.0-SNAPSHOT'
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath "com.jakewharton:butterknife-gradle-plugin:$butterknife_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}

All 2 comments

This is fixed on master. You can use 9.0.0-SNAPSHOT for now.

thanks for reply, but after I use 9.0.0-SNAPSHOT, it reports java.lang.NullPointerException
I'm using kotlin, so the code is as below in app gradle:
implementation "com.jakewharton:butterknife:$butterknife_version"
kapt "com.jakewharton:butterknife-compiler:$butterknife_version"

and as below in project gradle:
ext.butterknife_version = '9.0.0-SNAPSHOT'
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath "com.jakewharton:butterknife-gradle-plugin:$butterknife_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}

Was this page helpful?
0 / 5 - 0 ratings