欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

Android studio报错?把源换成阿里云解决95%问题

程序员文章站 2022-06-22 08:41:05
Android studio报错?把源换成阿里云解决95%问题(花了两天)首先确保setting没问题/ Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { google() maven{ url "http://maven.aliyun.com/....

 Android studio报错?把源换成阿里云解决95%问题(花了两天)

首先确保setting没问题

Android studio报错?把源换成阿里云解决95%问题

Android studio报错?把源换成阿里云解决95%问题

/ Top-level build file where you can add configuration options common to all sub-projects/modules.
 
buildscript {
    repositories {
        google()
        maven{ url "http://maven.aliyun.com/nexus/content/groups/public/" }
        jcenter(){url "http://jcenter.bintray.com/"}
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.2'
        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
        classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}
 
allprojects {
    repositories {
        google()
        maven{ url "http://maven.aliyun.com/nexus/content/groups/public/" }
        jcenter(){url "http://jcenter.bintray.com/"}
    }
}
 
task clean(type: Delete) {
    delete rootProject.buildDir
}
 

本文地址:https://blog.csdn.net/weixin_44576486/article/details/107134585