Hi,

can you show the complete stack trace?

But as said before, the Gradle project is the better place to ask.

Regards,
-marc


> On 29. Sep 2020, at 03:35, vic zhang <[email protected]> wrote:
> 
> Hi Marc,
> 
> Thanks for your reply. But, Gradle donwloads Jacoco plugin which records unit 
> tests, it seems just throw this exception at last stage(generate coverage 
> report).
> 
> 在2020年9月28日星期一 UTC+8 下午3:47:01<Marc R. Hoffmann> 写道:
> Hi,
> 
> neither gradle plugins not Sonarquibe are maintained by the JaCoCo project. 
> Please see our integration matrix for pointers:
> 
> https://www.jacoco.org/jacoco/trunk/doc/integrations.html 
> <https://www.jacoco.org/jacoco/trunk/doc/integrations.html>
> 
> Regards,
> -marc
> 
> 
> 
>> On 28. Sep 2020, at 04:46, vic zhang <[email protected] 
>> <applewebdata://8073A26A-7853-4545-BCF0-E3F869D25ABD>> wrote:
>> 
> 
>> BTW, my Java project bases on AdoptOpenJDK 11, when I clicks on "Re-download 
>> dependencies and sync project (requires network) " link, I get below dialog 
>> which requires me to select both Android and Java JDK(otherwise, the OK 
>> button is disabled):
>> 
>> 
>> 在2020年9月28日星期一 UTC+8 上午10:42:19<vic zhang> 写道:
>> Hi all,
>> 
>> I try to use Jacoco plugin of Gradle 6.5 to generate code coverage report, 
>> my build.gradle looks like as:
>> plugins {
>>     id "org.sonarqube" version "3.0"
>>     id 'jacoco'
>> }
>> jacocoTestReport {
>>     reports {
>>         xml.enabled true
>>         html.enabled true
>>         csv.enabled false
>>         html.destination file("${buildDir}/jacoco")
>>     }
>> }
>> 
>> test.finalizedBy jacocoTestReport
>> 
>> But when I try to run test or jacocoTestReport task, I get following error:
>> Unable to load class 'org.jacoco.core.analysis.ICoverageVisitor'.
>> Possible causes for this unexpected error include:
>> Gradle's dependency cache may be corrupt (this sometimes occurs after a 
>> network connection timeout.)
>> Re-download dependencies and sync project (requires network)
>> 
>> The state of a Gradle build process (daemon) may be corrupt. Stopping all 
>> Gradle daemons may solve this problem.
>> Stop Gradle build processes (requires restart)
>> 
>> Your project may be using a third-party plugin which is not compatible with 
>> the other plugins in the project or the version of Gradle requested by the 
>> project.
>> 
>> In the case of corrupt Gradle processes, you can also try closing the IDE 
>> and then killing all Java processes.
>> 
>> Does anybody know what's wrong? thanks a lot.
>> 
>> BR,
>> Vic
>> 
> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "JaCoCo and EclEmma Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] 
>> <applewebdata://8073A26A-7853-4545-BCF0-E3F869D25ABD>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jacoco/c899969d-68ee-47f8-a07f-2935c853d2d4n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jacoco/c899969d-68ee-47f8-a07f-2935c853d2d4n%40googlegroups.com?utm_medium=email&utm_source=footer>.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "JaCoCo and EclEmma Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jacoco/960decca-db18-41e7-a526-1751fab6a04an%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jacoco/960decca-db18-41e7-a526-1751fab6a04an%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/45C70CD6-EB62-48FB-9116-886F4109B0F3%40mountainminds.com.

Reply via email to