Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.3.2/gra
16lz
2021-01-23
安装Androidstudio可能大家都可能遇到
“Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.3.2/gradle-3”,或者‘Unable to resolve dependency for ':[email protected]/compileClasspath':’的问题,网上找了很多都是让添加国内maven库,然后enable勾选,但有时候并不能解决大部分问题。我遇到这个问题时是修改gradle.properties文件将里面的代理信息注释掉,如下:
## For more details on how to configure your build environment visit# http://www.gradle.org/docs/current/userguide/build_environment.html## Specifies the JVM arguments used for the daemon process.# The setting is particularly useful for tweaking memory settings.# Default value: -Xmx1024m -XX:MaxPermSize=256m# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8## When configured, Gradle will run in incubating parallel mode.# This option should only be used with decoupled projects. More details, visit# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects# org.gradle.parallel=true#Wed Mar 20 19:27:41 CST 2019#systemProp.https.proxyPort=80#systemProp.http.proxyHost=mirrors.neusoft.edu.cn#systemProp.https.proxyHost=mirrors.neusoft.edu.cn#systemProp.http.proxyPort=80
这样就可以重新 sync,然后build就能成功!
更多相关文章
- android中控件的大部分属性解释
- android Android build.gradle 配置注释
- C语言注释详解
- c语言的注释定界符是什么
- c语言注释符号是什么?
- c语言中的注释符号是什么
- c语言多行注释符号是什么
- c语言程序怎么注释?
- 程序中的注释部分是否参加编译?