androidstudiobuild时间太长处理-创新互联

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

开启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/'}

    }
}

文章标题:androidstudiobuild时间太长处理-创新互联
当前地址:http://ybzwz.com/article/dipceh.html