zoukankan      html  css  js  c++  java
  • 003-Android stuido新建Project Gradle:Download https:// jcenter.bintray.com/ 下载慢,超时问题解决方法

    切换到国内的Maven镜像仓库。
    修改项目根目录下 build.gradle 文件,将 jcenter() 或者 mavenCentral() 替换掉即可。可以用国内的仓库代替:

    阿里的仓库地址:http://maven.aliyun.com/nexus/content/groups/public/
    OSChina的仓库地址:http://maven.oschina.net/content/groups/public/
    buildscript {
        
        repositories {
        maven{ url 'http://maven.aliyun.com/nexus/content/repositories/central/'}
            google()
            jcenter()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:3.1.4'
            

            // NOTE: Do not place your application dependencies here; they belong
            // in the individual module build.gradle files
        }
    }

    allprojects {
        repositories {
        maven{ url 'http://maven.aliyun.com/nexus/content/repositories/central/'}
            google()
            jcenter()
        }
    }

    task clean(type: Delete) {
        delete rootProject.buildDir
    }

  • 相关阅读:
    (总结)Nginx配置文件nginx.conf中文详解(转自:http://www.ha97.com/5194.html)
    位图数据压缩算法
    sqlalchemy 使用
    Linux c 使用数学函数库出现问题.
    小笔记
    hibernate框架的学习(一)
    foreach
    发现的问题
    第一天练习
    进制转换
  • 原文地址:https://www.cnblogs.com/qiuniao/p/12171584.html
Copyright © 2011-2022 走看看