Skip to content Skip to sidebar Skip to footer

Error When Generating Code Coverage Report For Androidtest Instrumented Testcases With Dagger

I want to run createDebugCoverageReport gradle task.But after run task is failing and giving below error. java.lang.NoClassDefFoundError: dagger.shaded.auto.common.BasicAnnotation

Solution 1:

due what I found, it's a conflict with dagger-producers extensions - auto-value-gson works fine with dagger 2.0.2 - 2.4, but when dagger-producers (any version) is added as extra dependency to project following exception is thrown.

our problem is you are hitting the dex limit, which is different than this ticket. Make sure you're adding those dependencies to the apt config, not compile.

Post a Comment for "Error When Generating Code Coverage Report For Androidtest Instrumented Testcases With Dagger"