网上说的手动下载配置gradle,关防火墙,梯子,都解决不了的情况下可以试试这个方法
我的情况是Gradle报Could not install Gradle distribution from ‘https://services.gradle.org/distribution
然后同时pluglns下marketplace一直连不上
网上说的一些选项都是3.0版本的,4的都没有
解决方法如下:
1、设置File | Settings | Appearance & Behavior | System Settings | HTTP Proxy为No proxy
此时重新运行报错变为
Plugin [id 'com.android.application' version '7.2.1' apply false] was not found in any of the following sources:
2、修改全局文件gradle.properties,位于C:\Users\用户名\.gradle\gradle.properties
这一步参考以下博客
新建项目下Gradle sync报错Plugin was not found in any of the following sources_Aerith1013的博客-CSDN博客
成功结束
仅仅是个人的案例,希望能帮到同样问题的朋友