Android Gradle plugin requires Java 11 to run . You are currently using Java 1.8. You can try some of the following options: – changing the IDE settings.
Read moreWhere is Java path in Android Studio?
Navigate to File > Project Structure > SDK Location . Upon navigating there you will find that a tab named “JDK Location”, select that and then you can set the JDK path for the current project on which you’re working.16 Haz 2021
Read moreHow do I change the default Java in Android Studio?
Set the JDK version
Read moreWhat version of Java is needed for Android Studio?
A copy of the latest OpenJDK comes bundled with Android Studio 2.2 and higher , and this is the JDK version we recommend you use for your Android projects. So if you are using the newest version, you won’t need any additional JDK.
Read moreCan I use Java 16 for Android Studio?
For Android, performance has been improved for incremental changes in projects, especially those using the Jetifer tool to migrate libraries. Gradle now supports running on and building with Java 16, or Java Development Kit (JDK) 16, which was released on March 16.
Read moreHow do I know if JDK is installed Android Studio?
To get your JDK location, run /usr/libexec/java_home -v 11 in terminal . Send 1.7 for Java 7, 1.8 for Java 8, or 11 for Java 11.3 Haz 2015
Read moreCan I use Java 9 in Android Studio?
You can’t use Java 9 , Android only supports till Java 8 . You should use the JDK version that comes with Android Studio, NO need for side alone JDK.
Read more