Changing the Gradle JDK to 11 worked for me in Android Studio Arctic FoxArctic Fox (4.2):
Step 1: Navigate
Navigate to: Filemenu -> SettingFile → -> Build, Execution, DeploymentSetting → -> Build ToolsBuild, Execution, Deployment → -> GradleBuild Tools → Gradle
Step 2: Change
Change Gradle JDK to 11, below the Gradle Projects.
Step 3: Apply
Apply, and Rebuild Project and Rebuild Project!