在模塊的build.gradle裡面添加了 Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:design:26.1.0.Open FileSho ...
在模塊的build.gradle裡面添加了
implementation 'com.android.support:design:26.1.0'
構建的時候一直報這個錯
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:design:26.1.0.
Open File
Show Details
解決辦法:
查看 Gradle Scripts 下麵的 gradle.properties文件裡面是不是預設設置了代理 註釋掉就ok了 android Studio的更新不在依靠代理了
## 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 #Tue Jul 17 14:19:04 CST 2018 #systemProp.https.proxyPort=80 #systemProp.http.proxyHost=mirrors.neusoft.edu.cn #systemProp.https.proxyHost=mirrors.neusoft.edu.cn #systemProp.http.proxyPort=80
註釋後,重新構建,一切ok