zoukankan      html  css  js  c++  java
  • Android 模块构建错误不能下载依赖包

    在模块的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

  • 相关阅读:
    「洛谷 NOIP 计划 2021」【学习1】降维技巧
    组合数取模 合集
    浅谈并查集
    四边形不等式优化 dp (doing)
    qbxt数学五一Day4
    qbxt五一数学Day3
    qbxt五一数学Day2
    qbxt五一数学Day1
    浅谈拉格朗日插值
    10-交换排序:冒泡排序
  • 原文地址:https://www.cnblogs.com/tangchun/p/9341012.html
Copyright © 2011-2022 走看看