Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8

Thanks for reply.

Everything worked fine till I upgraded the gradle because Android Studio asked for that. My $JAVA_HOME var is se to:

/usr/lib/jvm/java-8-openjdk-amd64/

Ok. I’m gonna try to change the directory and post the result