when you are running app in android and getting this exception
Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
Here is the video to solve this error Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.