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