网上找了半天,未找到结果,
运行该程序 adb shell am instrument -e coverage true -w 包名/.test.JacocoInstrumentation
报如下错误
INSTRUMENTATION_RESULT: longMsg=java.lang.ClassNotFoundException: Didn't find class "com.goertek.gobubble.test.JacocoInstrumentation" on
解决过程
相关的三个覆盖率用到的文件 包名设置不对引起 InstrumentedActivity FinishListener JacocoInstrumentation
将文件第一个行 package 包名.test; 具体根据实际情况设置