环境变量配置了Gradle user home,大概是android studio settings里面也设置了gradle user home,却依然出现以下标题。
a、idea.log中报错
GradleConnectionException: Could not run phased build action using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-8.0-bin.zip'.
b、Android studio中显示:
Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'com.android.application:com.android.application.gradle.plugin:8.3.1')
Searched in the following repositories:
Google
MavenRepo
Gradle Central Plugin Repository
at
解决方法: