zoukankan      html  css  js  c++  java
  • androidstudio build 时间太长处理

    androidstudio升级后,build时间太长,各种依赖库、gradle库。昨晚回去前让它自动加载,今早来上班竟然还是没有完成。

    开启VPN 科学 上网还是慢如蜗牛

    最后没办法修改build.grale

    buildscript {
        repositories {
            google()
            maven{url "https://repo1.maven.org/maven2/"}
            maven{url "https://repository.jboss.org/maven2/"}
            maven{url "https://repository.sonatype.org/content/groups/public/"}
            maven{url "https://jitpack.io"}
            maven { url 'https://maven.aliyun.com/repository/apache-snapshots/' }
            maven { url 'https://maven.aliyun.com/repository/central/' }
            maven { url 'https://maven.aliyun.com/repository/google/' }
            maven { url 'https://maven.aliyun.com/repository/gradle-plugin/' }
            maven { url 'https://maven.aliyun.com/repository/jcenter/' }
            maven { url 'https://maven.aliyun.com/repository/public/' }
            maven { url 'https://maven.aliyun.com/repository/releases/' }
            maven { url 'https://maven.aliyun.com/repository/snapshots/' }
            // jcenter()
            jcenter(){url 'http://jcenter.bintray.com/'}
    
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:3.4.0'
            
            // NOTE: Do not place your application dependencies here; they belong
            // in the individual module build.gradle files
        }
    }
    
    allprojects {
        repositories {
            google()
            maven{url "https://repo1.maven.org/maven2/"}
            maven{url "https://repository.jboss.org/maven2/"}
            maven{url "https://repository.sonatype.org/content/groups/public/"}
            maven{url "https://jitpack.io"}
            maven { url 'https://maven.aliyun.com/repository/apache-snapshots/' }
            maven { url 'https://maven.aliyun.com/repository/central/' }
            maven { url 'https://maven.aliyun.com/repository/google/' }
            maven { url 'https://maven.aliyun.com/repository/gradle-plugin/' }
            maven { url 'https://maven.aliyun.com/repository/jcenter/' }
            maven { url 'https://maven.aliyun.com/repository/public/' }
            maven { url 'https://maven.aliyun.com/repository/releases/' }
            maven { url 'https://maven.aliyun.com/repository/snapshots/' }
            // jcenter()
            jcenter(){url 'http://jcenter.bintray.com/'}
    
        }
    }
  • 相关阅读:
    斐波那契数列实现方式,以及递归和非递归时间对比
    月份与季节
    时针与分针夹角
    二叉树非递归遍历 以及二叉树节点删除思路
    向左向右 —折半查找(二分法)
    c语言之字符串及字符集简介
    c语言之排序
    C语言代码页 预处理 和宏 结构体 共用体 枚举 指针简绍
    C语言之函数调用约定,递归,数组简介
    C语言之条件判断
  • 原文地址:https://www.cnblogs.com/John5/p/11359614.html
Copyright © 2011-2022 走看看