查看: 4112|评论: 0
个人博客

[andriod] androidstuidio gradle更新失败解决方法

eumnq8 2021-01-05 08:39 4112 0
[复制链接]
发表于 2021-1-5 08:39:14 | 显示全部评论序号 |阅读模式
使用阿里云的镜像库:http://maven.aliyun.com/nexus/content/groups/public/        具体配置如下

buildscript {

    repositories {
//        google()
//        jcenter()
        maven{url 'http://maven.aliyun.com/nexus/content/groups/public/'}
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.3'


        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
//        google()
//        jcenter()
        maven{url 'http://maven.aliyun.com/nexus/content/groups/public/'}
    }
}
您需要登录后才可以评论 登录 | 立即注册

当前分类积分规则

关闭

站长推荐上一条 /1 下一条

QQ|易游网-易游模拟器 Copyright @2015-2026 ( 浙ICP备15028007号-1 )

© 2026 易游网-易游模拟器 Copyright @2015-2026

快速评论 返回顶部 返回列表