Android integration error jdk-11.0.3.jdk or JDK12

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    Sonarcube 7.9 tried with android integration.While running scanner locally ./gradlew sonar
    I keep getting below error:
    16:46:39.469 [INFO] [org.gradle.api.Project] AAPT2 aapt2-3.4.1-5326820-osx Daemon #1: shutdown
    16:46:39.470 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
    16:46:39.470 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] … 97 more

  • what are you trying to achieve
    Integrate sonarcube with android project in android studio

  • what have you tried so far to achieve this
    Tried adding below but error still persist.

implementation 'javax.xml.bind:jaxb-api:2.2.8’

implementation 'org.glassfish.jaxb:jaxb-runtime:2.4.0-b180830.0438’

implementation files( ‘libs/javax.activation-1.2.0.jar’ )

============
Below is what I have in build.gradle:
classpath “org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.7.1”
apply plugin : 'org.sonarqube’

sonarqube {
properties {
def libraries = project.android.sdkDirectory.getPath() + “/platforms/android-28/android.jar”/* + ", build/intermediates/exploded-aar*//**//classes.jar"/
property “sonar.sources”, “src/main/java”
}
}