butterknife: Problem working with jack enabled

I just started a very simple project and tried to use both ButterKnife and Jack compiler, but it seems they do not cope with each other well.

Gradle plugin version: 2.2.0-alpha5

in my module build.gradle I added:

compile 'com.jakewharton:butterknife:8.2.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.2.1'

And the error message is:

Error:Execution failed for task ':app:transformJackWithJackForDebug'.
java.lang.AssertionError: java.lang.IllegalArgumentException

Did I miss something or it’s just they are not compatible?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 6
  • Comments: 22 (8 by maintainers)

Commits related to this issue

Most upvoted comments

Jack, as a project, is dead.

I tried to change the ButterKnife version to 8.1.0 and it works well, but 8.2.0 and 8.2.1 complain exceptions above.

The problem continues…

It is not related, but it’s not a ButterKnife problem either.

On Wed, Jul 13, 2016 at 1:58 PM Leonardo Ferrari notifications@github.com wrote:

I don’t know if it’s related to your issue, but once I updated my gradle (and AS) to preview 5, on ``` version 8.2.0 and 8.2.1 I’m getting this error: Error:(27, 0) Timeout waiting to lock cp_dsl class cache for script ‘/Users/leonardo/StudioProjects/MaterialNotes/dependencies.gradle’ (/Users/leonardo/.gradle/caches/2.10/scripts/dependencies_7dh1rpm6pyjkhy37vu4750p7f/cp_dsl). It is currently in use by another Gradle instance. Owner PID: unknown Our PID: 65744 Owner Operation: unknown Our operation: Initialize cache Lock file: /Users/leonardo/.gradle/caches/2.10/scripts/dependencies_7dh1rpm6pyjkhy37vu4750p7f/cp_dsl/cache.properties.lock Open File

If they are not related I can create another issue…

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/JakeWharton/butterknife/issues/673#issuecomment-232436165, or mute the thread https://github.com/notifications/unsubscribe/AAEEEXdacBjxI_b99Nd0wvpRi3Filx7Vks5qVSc5gaJpZM4JLCT5 .