Looks like butterknife dumps both the generated .java and .class in the
compiler output folder which throws Jacoco off.

We changed how Jacoco is run to make it incremental, and this bypasses how
Jacoco would normally exclude processing these files I suppose. It's an
easy fix, thanks for the test project.

On Thu, Oct 1, 2015 at 10:52 AM, Niek Pulles <[email protected]> wrote:

> Hi Xavier,
>
> Hereby the sample project.
>
> https://www.dropbox.com/s/rpbg9z64u8bxery/Jacoco_Butterknife_ADT.zip?dl=0
>
> When you try to run it it will show:
> Error:Execution failed for task ':app:transformClassesWithJacocoForDebug'.
> > java.io.IOException: Error while instrumenting class
> /Users/a310120456/AndroidStudioProjects/Jacoco_Butterknife_ADT/app/build/intermediates/classes/debug/project/sample/jacoco_butterknife_adt/ItemDetailFragment$$ViewBinder.java.
>
> The ItemDetailFragment I change to use butterknife.
>
> --
> Kind regards,
> Niek.
>
> On Thursday, October 1, 2015 at 7:02:29 PM UTC+2, Niek Pulles wrote:
>>
>> Hi,
>>
>> We use Butterknife 7.0.1 for our project, jacoco for code coverage and we
>> are looking into to use Android Build Tools 1.4.0-beta3 (classpath
>> 'com.android.tools.build:gradle:1.4.0-beta3') with SVG support. When we
>> then run our application we get an exception in
>> SomeFragment$$ViewBinder.java in jacoco.
>>
>>
>> See complete stacktrace: http://pastebin.com/9Q0Pb6Eh
>>
>>
>> A quick test: it does also fail with 1.4.0-beta2, but not with
>> 1.4.0-beta1.
>>
>>
>> Regards,
>> Niek
>>
>> P.S. Issue is also filed to butterknife github.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "adt-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to