Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ButterKnife not working with Jack?

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?

like image 913
Marvin Avatar asked Jul 13 '16 03:07

Marvin


1 Answers

Version 8.3.0 has just recently been released with support for Jack.

compile 'com.jakewharton:butterknife:8.3.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.3.0'
like image 95
Tom Avatar answered Sep 18 '22 15:09

Tom