sonar.organization=khanh21011999
This is the name and version displayed in the SonarCloud UI.
sonar.projectName=testUnitTest
sonar.projectVersion=1.0
Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
sonar.sources=./sonar-project.properties
sonar.exclusions=android/**
Encoding of the source code. Default is default system encoding
sonar.sourceEncoding=UTF-8
sonar.javascript.lcov.reportPaths=./coverage/lcov.info
sonar.coverage.exclusions=__mocks__/**,src/types/**
sonar.tests=__TEST__
sonar.test.inclusions=__TEST__/**```
You’ve set a lot of properties you probably don’t need to (and set them incorrectly). The only one relevant to code coverage is sonar.javascript.lcov.reportPaths. How about you try removing all the others (sonar.sources, sonar.sourceEncoding, sonar.tests and sonar.tests.inclusions) and see if the error goes away?
sonar.sources should be path of your source files, example src/not path of sonar-project.properties file.
Reference: Narrowing the Focus | SonarQube Docs