admin管理员组

文章数量:1122853

Android studio各版本官方下载地址:
https://developer.android.google/studio/archive

Android studio稳定版下载地址:
https://developer.android.google/studio

Android开发中文站点:
https://developer.android.google/

Android studio排错:
http://tools.android/build/studio

Android studio插件问题
https://developer.android.google/studio/known-issues

项目构建太慢,加速构建
http://blog.isming.me/2015/03/18/android-build-speed-up/

gradle 下载地址:
https://gradle/releases/
https://services.gradle/distributions/

gradle下载不下来的话,可以把仓库镜像替换成国内镜像,下载完gradle再换回去Google和jcenter:
在项目文件中找到build.gradle文件,修改其中的buildscript和allprojects地址:

buildscript {
    repositories {
        maven{ url 'http://maven.aliyun/nexus/content/groups/public/' }
        maven{ url 'http://maven.aliyun/nexus/content/repositories/jcenter'}
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.3.0-alpha13'
    }
}
allprojects {
    repositories {
        maven{ url 'http://maven.aliyun/nexus/content/groups/public/'}
        maven{ url 'http://maven.aliyun/nexus/content/repositories/jcenter'}
    }
}
task clean(type: Delete) {
    delete rootProject.buildDir
}

阿里云gradle配置:
https://maven.aliyun/mvn/guide

腾讯国内镜像gradle下载点值:
https://mirrors.cloud.tencent/gradle/

Google站点:
https://services.gradle/distributions/

参考:
https://wwwblogs/luoruiyuan/p/6527995.html

gradle及相关插件Google下载替换为国内镜像下载

修改gradle下载地址,打开gradle-wrapper.properties:

#Fri Feb 19 17:54:57 CST 2021
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
#distributionUrl=https\://services.gradle/distributions/gradle-5.4.1-all.zip
distributionUrl=https\://mirrors.cloud.tencent/gradle/gradle-5.4.1-all.zip

然后,找到project的build.gradle文件:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        maven{url 'https://mirrors.cloud.tencent/gradle/'}
        maven{url 'http://maven.aliyun/nexus/content/groups/public/'}
        maven{url "https://jitpack.io"}
        google()
//        google()
//        jcenter()
//        maven{ url 'http://maven.aliyun/nexus/content/groups/public/' }
//        maven{ url 'http://maven.aliyun/nexus/content/repositories/jcenter'}
        maven {
            url 'https://maven.aliyun/repository/public/'
        }
        maven {
            url 'https://maven.aliyun/repository/google'
        }
        maven {
            url 'https://maven.aliyun/repository/jcenter'
        }
        maven {
            url 'https://maven.aliyun/repository/gradle-plugin'
        }
        mavenLocal()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.2'
        
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        maven{url 'http://maven.aliyun/nexus/content/groups/public/'}
        maven{url 'https://mirrors.cloud.tencent/gradle/'}
        google()
//        google()
//        jcenter()
//        maven{ url 'http://maven.aliyun/nexus/content/groups/public/' }
//        maven{ url 'http://maven.aliyun/nexus/content/repositories/jcenter'}
        maven {
            url 'https://maven.aliyun/repository/public/'
        }
        maven {
            url 'https://maven.aliyun/repository/google'
        }
        maven {
            url 'https://maven.aliyun/repository/jcenter'
        }
        maven {
            url 'https://maven.aliyun/repository/gradle-plugin'
        }
        mavenLocal()
        mavenCentral()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

本文标签: 站点腾讯阿里镜像关键