更新时间:2023-12-05 13:47:34
Android Studio Artic Fox 2020.3.1
Preferences (Settings) -> Build, Execution, Deployment -> Build Tools -> Gradle -> Gradle JDK -> Select JDK 11 or download JDK
Before
I assume you have Java 11 or later installed. Following steps:
File -> Project Structure -> SDK Location -> Change JDK Location to the Java 11 jdk folder
If you are using Mac OS then try to search for that folder in:
/Library/Java/JavaVirtualMachines/jdk-11.0.9.jdk/Contents/Home