如下所示,在build.gradle中添加Aliyun Maven仓库


// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
google()
jcenter() }
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1' // NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
} allprojects {
repositories {
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
google()
jcenter() }
} task clean(type: Delete) {
delete rootProject.buildDir
}

最新文章

  1. c = (a / b, a%b) 运算输出顺序
  2. winxp计算机管理中服务详解
  3. 使用vs2013打开vs2015项目
  4. Windows 设置扩展投影鼠标移出方向
  5. 每日英语:why can't China produce world-class CEO?
  6. 未能加载文件或程序集“XXX”或它的某一个依赖项。试图加载格式不正确的程序。
  7. 黄聪:wordpress如何使用wp_rewrite实现自定义伪静态,非301重定向。
  8. 正则化,数据集扩增,Dropout
  9. hdu 2582 f(n) 数学
  10. 【转载】Ssh整合开发介绍和简单的登入案例实现
  11. Android Studio工程导入另一个工程作为lib
  12. Linux下通过ODBC连接sqlserver
  13. CSS的z-index(分层)
  14. 1145: 零起点学算法52——数组中删数II
  15. 细看JS中的BOM、DOM对象
  16. 谈谈Golang中goroutine的调度问题
  17. HBase BulkLoad批量写入数据实战
  18. java保留小数后两位的四种写法
  19. LintCode 521.去除重复元素
  20. 如何成为F1车手?

热门文章

  1. Java数据结构与算法(4):二叉查找树
  2. C++ Boost库的编译及使用
  3. 用shell和python实现数组的一个例子
  4. 嵌入式Linux文件系统知多少
  5. 关闭掉mysql 8和mysql5.7的密码验证插件validate_password
  6. Delphi XE2 之 FireMonkey 入门(10) - 常用结构 TPoint、TPointF、TSmallPoint、TSize、TRect、TRectF 及相关方法
  7. 测开之路九十二:css之背景色和背景
  8. tensorflow和keras的安装
  9. Symmetric Tree(对称二叉树)
  10. c编程过程中错误笔记-& 理解不深啊!