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
    }

  • 相关阅读:
    分页查询
    PDO
    投票
    租房子
    PHP增删改查
    PHP数据访问
    PHP三大特性-继承
    PHP三大特性-封装
    PHP面向对象
    循环语句(2)
  • 原文地址:https://www.cnblogs.com/qiuniao/p/12171584.html
Copyright © 2011-2022 走看看