cambiare le proprietà sonar in questo modo:
apply plugin: "org.sonarqube"
sonarqube {
properties {
property "sonar.projectName", "appa"
property "sonar.projectKey", "appa_app"
property "sonar.projectVersion", "1.0"
property "sonar.analysis.mode", "publish"
property "sonar.language", "java"
property 'sonar.sourceEncoding', "UTF-8"
property "sonar.sources", "./src/main"
//property "sonar.exclusions", "**/*Entity.java"
// property "sonar.exclusions", "src/main/java/com/apparkb/model/**, **/*Entity.java"
property "sonar.host.url", "http://192.168.21.33:9000"
property "sonar.login", "admin"
property "sonar.profile", "testlint"//use your quality profile instead
property 'sonar.import_unknown_files', true
property "sonar.android.lint.report", "./build/outputs/lint-results-debug.xml"
property "sonar.password", "admin"
property "sonar.java.binaries", "build/"
}
}
Per la creazione di lint-risultati-debug.xml si dovrà eseguire il comando in basso a TERMINAL Studio:
./gradlew lint
Sarà genera il rapporto XML mancante. Siate cauti, può generare un report per ogni variante di build (Debug di default genererà build/output/lint-results-debug.xml). Quindi puoi chiamare lintDebug, lintRelease ... dipendenze dalla tua variante di build.
e modificare le proprietà pelucchi a:
lintOptions { // set to true to turn off analysis progress reporting by lint
quiet true
// if true, stop the gradle build if errors are found
abortOnError false
// do not ignore warnings
warningsAsErrors true
}
ora se si esegue
./gradlew sonarqube
si ottengono i risultati dimostrato la sua in realtà il rapporto file locale che è in realtà sempre ospitato su il server 
fonte
2017-04-13 04:39:44
Sei riuscito a trovare un defini soluzione tiva? – FoY
No, stiamo utilizzando l'output LINT di Hudson/Jenkins e l'utilizzo di Sonar per analisi tradizionali, non Android. Un pò fa schifo ma è quello che è. –