Issue with Sonar Lint

I am getting an error when I run sonarqube on the terminal. Is there support for Java 1.8 version ??

MacBook-Pro android % ./gradlew sonarqube

FAILURE: Build failed with an exception.

  • Where:
    Build file ‘/Users/bhagvank/android/app/build.gradle’ line: 1

  • What went wrong:
    A problem occurred evaluating project ‘:app’.

Failed to apply plugin ‘’.
Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
Your current JDK is located in /usr/local/Cellar/openjdk@8/1.8.0+322/libexec/openjdk.jdk/Contents/Home/jre
You can try some of the following options:
- changing the IDE settings.
- changing the JAVA_HOME environment variable.
- changing in

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use ‘–warning-mode all’ to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See Command-Line Interface



Welcome to the community!

The error message is pretty clear:

You’ll need to update to Java 11 to run the analysis. You can still build with or to Java 8 if you like. But you need to analyze with Java 11.