Android Studio 卡在download fastutil下载慢

本文介绍了如何更新Android项目的build.gradle文件,以替换阿里云及华为HMSCore的镜像地址。参照提供的链接,开发者可以确保使用最新的阿里云公共仓库和华为AppGallery Connect的Maven仓库地址,以保持依赖库的同步。
摘要由CSDN通过智能技术生成

需要替换国内镜像,现在阿里云地址已经更新了。需要使用新的地址。可以参考

https://developer.aliyun.com/mvn/guide

以下是更改buil.gradle文件的代码

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        maven {
            url 'https://maven.aliyun.com/repository/public/'
        }
        mavenLocal()
        mavenCentral()
        google()
        mavenCentral()
        // 配置HMS Core SDK的Maven仓地址。
        maven {url'https://developer.huawei.com/repo/'}
        maven { url "https://jitpack.io" }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:7.2.1'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
        // 增加agcp插件配置,推荐您使用最新版本的agcp插件。
        classpath 'com.huawei.agconnect:agcp:1.6.0.300'
    }
}

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


  • 3
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Sqsdhc

多多支持

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值