Executed the following command in the terminal through the Android studio.
1)./gradlew connected check
2) ./gradlew lintDebug
3)./gradlew build jacocoTestReport sonarqube
4) Copy the Jacoco-generated report to the directory where Sonar is looking for a report to reflect the change in the dashboard.
5)./gradlew sonar