About this question
When I was developing an Android application I encountered an error message that was showing that the “Android Gradle plugin requires Java 11 to run. You are currently using 1.8” How can I update my Java version to 11 from 1.8 for the Android Gradle plugin so that I can troubleshoot this particular error?