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

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
}

最新文章

  1. java.nio.ByteBuffer中flip,rewind,clear方法的区别
  2. Java总结篇系列:类型转换/造型
  3. 使用grunt构建seajs项目
  4. 【转载】S2SH
  5. 为什么Redis内存不宜过大
  6. [转载]C#字符串加密和解密
  7. codeforce --- 340D
  8. UNIX环境高级编程第二版代码笔记
  9. stagefright框架(三)-选择Video Decode
  10. JavaScript 部分对象方法记叙 ing...
  11. JMS连接WMQ及收发消息
  12. HTTP Error 500.19 - Internal Server Error
  13. 十分钟了解HTTPS
  14. 一般程序中的session
  15. nodejs中的垃圾回收机制
  16. 【Python】socket编程-1
  17. MBP 使用笔记
  18. position:absolute元素 怎样居中
  19. Google Spanner vs Amazon Aurora: Who’ll Get the Enterprise?
  20. c++中string (MFC)

热门文章

  1. HBase原理深入
  2. 四元数Quaternion的基本运算
  3. 第一个HTML
  4. MySQL8.0报错:Access denied; you need (at least one of) the SYSTEM_USER privilege(s) for this operation
  5. 升级openssl和openssh脚本
  6. Elasticsearch集群黄色原因的终极探秘
  7. Elastic: 创建一个 Elastic 邮件警报 - 7.7 发行版
  8. POJ3280 Cheapest Palindrome (区间DP)
  9. MyBatis(入参的类型和日志记录)
  10. 细聊.Net Core中IServiceScope的工作方式