I had success with a multimodule android project. Since the complete build files take too much space I show the relevant parts here only.
In the parent project’s build.gradle I set:
buildscript {
...
dependencies { classpath 'com.android.tools.build:gradle:1.5.0'
...
}
plugins { id "org.sonarqube" version "1.1" }
In the app project (and any other children) I set:
sonarqube {
properties {
property "sonar.profile", "Android Lint"
property "sonar.sources", "./src/main/java"
}
}
That was the minimum setup for SonarQube plugin to start analyzing the projects.