有人能帮我解决这个错误吗
Could not run phased build action using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-7.4-all.zip'.
org.gradle.api.ProjectConfigurationException: A problem occurred configuring root project 'android'.
A problem occurred configuring root project 'android'.
A problem occurred evaluating root project 'android'.
A problem occurred configuring project ':app'.
A problem occurred evaluating project ':app'.
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.
1条答案
按热度按时间jv4diomz1#
从以下网址获取Android Studio支持的最新版本:
https://services.gradle.org/distributions
转到首选项→构建、执行、部署→构建工具→ Gradle → * Gradle JDK。
就是这样。