Hello,
The situation is as follows: I am scanning Android projects that have been compiled successfully with Sonar-Scanner (this project is not our company’s project), but when I execute commands, there are always errors in a Java file. So I delete the problem files one by one in order to save time. But, the error always occurs in a different Java file every time the build fails, which makes me very vexed.When the same problem still appears after deleting more than a dozen files, I think there is a problem with my method, so I come here to ask experts for advice.
This is the moment when a build fails:
This is the content of my sonar-project.properties:
sonar.host.url=http://localhost:9700
sonar.projectName=AndroidDemo01
sonar.projectKey=AndroidDemo01
sonar.exclusions=**/*.xml,**/*.c,**/*.cpp,**/*.h
sonar.java.binaries=classes
sonar.source=src/main/java/kankan
sonar.login=admin
sonar.password=admin1234
I have tried to use “./gradlew sonarqube…” before, but this project is not done by my company, so I don’t have Maven private server and other environments required for compilation. The binary files needed for scanning were provided to me by the person who wrote the project.
What else do I need to do to complete this scan? Please let me know.
Thanks.
Kevin