简体   繁体   English

Jacoco 覆盖不适用于最新的 android 插件

[英]Jacoco coverage doesn't work with latest android plugin

Im getting this below error after updating the gradle android plugin.更新 gradle android 插件后,我收到以下错误。

Execution failed for task ':App:jacocoTestReport'.任务 ':App:jacocoTestReport' 执行失败。

Unable to read execution data file app/build/outputs/code-coverage/connected/coverage.ec无法读取执行数据文件 app/build/outputs/code-coverage/connected/coverage.ec

jacoco version = "0.7.6.201602180812" jacoco 版本 =“0.7.6.201602180812”

android plugin version: 'com.android.tools.build:gradle:2.1.0' android 插件版本:'com.android.tools.build:gradle:2.1.0'

Is there any problem with the latest plugin?最新的插件有问题吗?

try changing version to toolVersion = "0.7.4+".尝试将版本更改为 toolVersion = "0.7.4+"。 it worked for me.它对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM