Could not install Gradle distribution from Reason:java.net.SocketTimeoutException: Connect timed out
解决:gradle/wrapper/gradle-wrapper.properties文件中修改下载地址
https://mirrors.aliyun.com/macports/distfiles/gradle/gradle-xxx-bin.zip
Plugin [id: ‘com.android.application’, version: ‘7.3.0’, apply: false] was not found in any of the following sources
解决:在Windows用户文件.gradle目录下的gradle.properties文件中删除proxy相关设置,这个是真的坑啊,缘故原由找了2个小时才找到这。
下载依赖出现错误
A problem occurred configuring root project ‘My Application’.
> Could not resolve all artifacts for configuration ‘:classpath’.
> Could not find j2objc-annotations-2.8.jar (com.google.j2objc:j2objc-annotations:2.8).
Searched in the following locations:
缘故原由gradle中源中加了https://maven.aliyun.com/repository/jcenter,由于 jcenter 堆栈已逐步废弃,删除了这个就好了。
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。 |