# Issue with Sonar Lint

**URL:** <https://community.sonarsource.com/t/issue-with-sonar-lint/74180>\
**Category:** SonarQube Cloud\
**Tags:** gradle, scanner\
**Created:** [October 7, 2022, 8:29am UTC](https://community.sonarsource.com/t/issue-with-sonar-lint/74180 "2022-10-07T08:29:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhagvank](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/bhagvank/32/37894_2.png) [@bhagvank](https://community.sonarsource.com/u/bhagvank)\
**Post date:** [October 7, 2022, 8:29am UTC](https://community.sonarsource.com/t/issue-with-sonar-lint/74180/1 "2022-10-07T08:29:02Z")

</div>

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 ‘com.android.internal.application’.  
> 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 `org.gradle.java.home` in `gradle.properties`.

- 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.

- Get more help at [https://help.gradle.org](https://help.gradle.org)

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](https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings)

BUILD FAILED in 1s

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [October 10, 2022, 5:09pm UTC](https://community.sonarsource.com/t/issue-with-sonar-lint/74180/2 "2022-10-10T17:09:24Z")

</div>

Hi,

Welcome to the community!

The error message is pretty clear:

> [@bhagvank](#):
>
> `requires Java 11 to run. You are currently using Java 1.8.`

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.

&nbsp;  
HTH,  
Ann
