Android studio报错?把源换成阿里云解决95%问题
程序员文章站
2022-03-11 08:35:46
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没问题
/ 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
上一篇: react-native-tab-navigator 的使用
下一篇: c++ vector容器