1

Trying to add Hilt to current project which already has Jacoco running.

I'm seeing below error log (code is compiled and runs OK.)

Caused by: java.lang.IllegalStateException: Cannot process instrumented class (path masked)/DescVm$special$$inlined$map$3. Please supply original non-instrumented classes.

So I'm trying to supply original non-instrumented classes as the error message says, but I don't know how to.

I've done searches and found:

  1. There is restore-instrumented-classes option for maven jacoco plugin, is it also available for gradle jacoco plugin? If so, could someone please let me know? (I think this article is highly related to my question)
  2. This option seems like I have to entirely give up jacoco's coverage so I'm not tempted to do so. Am I mistaken?
  3. This article seems like unrelated to mine as I'm not on a multi-module project.

info:

android gradle plugin version: 7.0.4

gradle version: 7.0.2

jacoco version: 0.8.7

hilt version: 2.38.1

Thank you.

Cheolho Jeon
  • 359
  • 1
  • 12

0 Answers0