Android Gradle plugin requires Java 17 to run. You are currently using Java 16.
Your current JDK is located in /Library/Java/JavaVirtualMachines/jdk-16.0.2.jdk/Contents/Home
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
What do I need to do here? I downloaded Java 17 and set JAVA_HOME, but not able to debug.
What do I need to do here? I downloaded Java 17 and set JAVA_HOME, but not able to debug.
km viel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
It seems you’re encountering an issue with Java versions while trying to run an Android project. Let’s go through the steps to resolve this:
- Verify Java 17 Installation
First, ensure that Java 17 is correctly installed on your system:
Open Terminal
Run java -version
It should show Java 17.x.x
If it doesn’t, Java 17 might not be in your PATH.
Cleaning Services Round Rock is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.