You can try changing the Gradle JDK from jbr-21 to jbr-17 in Android Studio's settings (Build, Execution, Deployment -> Build Tools -> Gradle)