• android阿里云镜像


    gradle同步特别慢,网上收集的几种方法。

    android/build.gradle

    repositories {
           maven { url 'https://maven.aliyun.com/repository/jcenter' } 
           maven { url 'https://maven.aliyun.com/repository/google' } 
           jcenter() 
           google() 
    }

    第二个比较完整,推荐

    buildscript {
        ext.kotlin_version = '1.2.71'
        repositories {
        	// 以下四行代码为阿里gradle 源
            maven{ url 'https://maven.aliyun.com/repository/google'}
            maven{ url 'https://maven.aliyun.com/repository/gradle-plugin'}
            maven{ url 'https://maven.aliyun.com/repository/public'}
            maven{ url 'https://maven.aliyun.com/repository/jcenter'}
            google()
            jcenter()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:3.2.0'
            classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        }
    }
    
    allprojects {
        repositories {
        	// 所有的model 都优先使用阿里源
            maven{ url 'https://maven.aliyun.com/repository/google'}
            maven{ url 'https://maven.aliyun.com/repository/gradle-plugin'}
            maven{ url 'https://maven.aliyun.com/repository/public'}
            maven{ url 'https://maven.aliyun.com/repository/jcenter'}
            google()
            jcenter()
        }
    }
    
    task clean(type: Delete) {
        delete rootProject.buildDir
    }
    

      

  • 相关阅读:
    WebFlux系列(二) Server-Sent Events
    WebFlux系列(一)HelloWorld
    Reactor系列(十九)StepVerifier测试
    C++中vector和set使用sort方法排序
    获取线程ID
    C标准中一些预定义的宏__DATE__ __FILE__ __LINE__ __TIME__ __func__
    opencv测试代码
    nohub相关
    tensorflow相关练习
    摄像机相关
  • 原文地址:https://www.cnblogs.com/DevFans/p/12452393.html
Copyright © 2020-2023  润新知