// Run below commands to update JDK version on your mac
brew tap homebrew/cask-versions
brew install --cask zulu11
The Android Gradle plugin requires Java 11 or higher to run, so you will need to update your Java version to resolve this issue. Here are the steps you can follow:
The commands will update the JDK version on your system and the gradle error will be solved.
brew tap homebrew/cask-versions
brew install --cask zulu11
This will install the Zulu 11 Java Development Kit (JDK) using Homebrew on a macOS system.
After running these commands, you should have the Zulu 11 JDK installed on your system. You can verify this by running java -version in the terminal, which should output information about the installed version of Java.
0 Comments