Android studio 3.0 got Error SHA-256 digest error for org/jacoco/agent/rt/RT.class

泄露秘密 提交于 2019-12-04 07:40:01

UPDATE 2:

Firebase Support still says the fix is not rolled out, but I tried it out today with the latest versions of firebase-perf and jacoco and it works.

UPDATE 1:

firebase-perf doesn't work with jacoco when Java 1.8 support is enabled. Firebase support team was able to replicate this and is investigating.

Original post:

This looks to be triggered when firebase-perf plugin is enabled. I filed a bug with Firebase team and will update if I get an answer.

As a temporary workaround, just commenting out apply plugin ... firebase-perf should help. It will disable Automatic Traces but @AddTrace and newTrace should still work.

In my case testCoverageEnabled is set conditionally based on a project property and I didn't need firebase-perf plugin for when evaluating the coverage, so I just disabled the plugin:

if (!project.hasProperty('coverageRun')) {
    apply plugin: 'com.google.firebase.firebase-perf'
}
// < ... >
if (project.hasProperty('coverageRun')) {
    testCoverageEnabled true
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!