JakeWharton / butterknife

Bind Android views and callbacks to fields and methods.
http://jakewharton.github.io/butterknife/
Apache License 2.0
25.56k stars 4.61k forks source link

9.0.0-SNAPSHOT Execution failed for task ':app:processDebugResources' #1183

Closed clementpoiret closed 6 years ago

clementpoiret commented 6 years ago

Hi, I update Gradle to 3.0.1 so I had to update Butterknife to 9.0.0-SNAPSHOT. Unfortunately this is providing erros as you can see: screenshot 56

Here is my build.gradle

`buildscript { repositories { jcenter() google() maven { name 'Sonatype SNAPSHOTs'; url 'https://oss.sonatype.org/content/repositories/snapshots/' } } dependencies { classpath 'com.android.tools.build:gradle:3.0.1' classpath "com.jakewharton:butterknife-gradle-plugin:9.0.0-SNAPSHOT" } }

allprojects { repositories { jcenter() google() maven { name 'Sonatype SNAPSHOTs'; url 'https://oss.sonatype.org/content/repositories/snapshots/' } } }

task clean(type: Delete) { delete rootProject.buildDir }`

Library's build.gradle:

`apply plugin: 'com.android.library' apply plugin: 'com.jakewharton.butterknife'

android { compileSdkVersion 27 buildToolsVersion "27.0.3"

defaultConfig {
    minSdkVersion 16
    targetSdkVersion 27
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

}

dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:27.0.2' compile 'com.android.support:recyclerview-v7:27.0.2' compile 'com.android.support:design:27.0.2'

//RX
compile('io.reactivex:rxandroid:1.1.0') {
    exclude module: 'rxjava'
}
compile 'io.reactivex:rxjava:1.1.0'
compile 'com.jakewharton.rxbinding:rxbinding:0.4.0'
compile 'com.jakewharton:butterknife:9.0.0-SNAPSHOT'
annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0-SNAPSHOT'

} `

I already tried ./gradlew clean build and gradlew --refresh-dependencies

Do you know where it come from? Thanks!

JakeWharton commented 6 years ago

I cannot see how this is related to Butter Knife or how a change to Butter Knife could solve this problem. It looks like a generic misconfiguration on your part or an Android Gradle plugin problem.

If you can create a standalone executable example that demonstrates the problem is from Butter Knife I can take a look, but as of now there's no indication the library is at fault.