Encounter jacocoTestReport issue when build gradle

I’m new to gradle. I have issues when build the gradle using ‘./gradlew sonarqube -x test’.
It built with failure according to the following error messages:

> Task :jacocoTestReport FAILED

FAILURE: Build failed with an exception.

  • What went wrong:

Execution failed for task ‘:jacocoTestReport’.

Error while creating report

  • Try:

Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output. Run with –scan to get full insights.

BUILD FAILED in 2s

2 actionable tasks: 1 executed, 1 up-to-date