Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.

使用了最新版本Android Studio,Android Gradle plugin requ…

使用了最新版本Android Studio,Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.

完整报错如下:
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.
– changing org.gradle.java.home in gradle.properties.

在这里插入图片描述

解决方法
File -> Settings -> Build,Execution,Deployment -> Build Tools -> Gradle
在这里插入图片描述
分享一个鸿蒙开发教程

本文来自网络,不代表软粉网立场,转载请注明出处:https://www.rfff.net/p/3500.html

作者: HUI

发表评论

您的电子邮箱地址不会被公开。

返回顶部