Unable to load component during Sonar Cloud on Azure DevOps

Hi, i am setting a quality gate on Azure DevOps, using Sonar Cloud to verify a java project. However, i caught this problem during run the code analysis

##[error]ERROR: Error during SonarQube Scanner execution

##[error]ERROR: Unable to load component class org.sonar.scanner.scan.filesystem.ProjectFileIndexer

##[error]ERROR: Caused by: Unable to load component class org.sonar.scanner.scan.filesystem.FileIndexer

##[error]ERROR: Caused by: Unable to load component class org.sonar.scanner.scan.filesystem.MetadataGenerator

##[error]ERROR: Caused by: Unable to load component class org.sonar.scanner.scan.filesystem.StatusDetection

##[error]ERROR: Caused by: Unable to load component class org.sonar.scanner.scm.ScmChangedFiles


##[error]ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.

##[error]D:\a_tasks\SonarCloudAnalyze_ce096e50-6155-4de8-8800-4221aaeed4a1\1.6.3\sonar-scanner\bin\sonar-scanner.bat failed with return code: 1

Finishing: Run Code Analysis

I add these codes in prepare-analysis:

configMode: manual
sonar.java.source: 8.0
sonar.java.binaries: **/target/classes
cliSources: ‘/’

but my quality gate still return error.
How should i fix this problem. Thanks


Can you please provide us the “Prepare analysis configuration” task log with system.debug=true please ?


Find the answer:
I add these code in the properties file:

sonar.coverage.jacoco.xmlReportPaths = ./jacoco.xml

sonar.coverage.exclusions=/model/, /test/, /device/common/


configMode: manual

sonar.java.source: 8

sonar.java.binaries= /

cliSources: ‘/’

I dont really sure that everything needs to be defined like this, but it works for me