报错信息:
An exception occurred applying plugin request [id: 'com.android.application']Failed to apply plugin 'com.android.internal.application'.
Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
You can try some of the following options:
- changing the IDE settings.
- changing the JAVA_HOME environment variable.
- changingorg.gradle.java.home
ingradle.properties
.
- Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
解决Gradle plugin requires java11 to currently using Java 1.8
第一步:

然后在如下界面点击Gradle Settings

Gradle JDK选择如下的Gradle JDK版本 (温馨提示:没有找到如下的Gradle JDK版本,可点击Download JDK进行下载11版本的JDK)

最后点击OK 运行就可以了
网友评论