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.
- changingorg.gradle.java.home
ingradle.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
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.
BUILD FAILED in 1s