关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回

androidstudiobuild时间太长处理

发布时间:2022-07-27 13:54:09
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/'}

    }
}

/template/Home/Dawn/PC/Static

选择风纳云,也许是您成就一番大事业的开端

注册账号