jcenter下载不了时,用国内镜像下载解决
修改build.gradle,以下是原本的配置信息
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type:Delete) {
delete rootProject.buildDir
}
修改成以下的配置信息
buildscript{
repositories{
maven{ url'http://maven.aliyun.com/nexus/content/groups/public/' }
maven{ url'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
google()
}
dependencies{
classpath'com.android.tools.build:gradle:3.1.4'
// 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'}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
最新文章
- ASP.NET Core 中文文档 第四章 MVC(4.6)Areas(区域)
- java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x12
- 流编辑器-sed
- outlook经常无故崩溃解决办法
- Linux入门基础 #8:Linux拓展权限
- Web安全概述
- Eclipse如何将java项目改为web项目
- C# 实现登录并跳转界面
- [转载] java多线程总结(一)
- Cs231n课堂内容记录-Lecture2-Part2 线性分类
- RocketMQ RPC
- 【网络安全】SSLSplit实现中间人攻击
- VoiceXML标识元素及其属性
- Hibernate的核心对象关系映射
- InnerClass annotations are missing corresponding EnclosingMember annotations. Such InnerClas...
- 【译】第十一篇 Integration Services:日志记录
- 深度学习开源库tiny-dnn的使用(MNIST)
- vue $http请求服务
- PHP 5.5.38 + mysql 5.0.11 + zabbix3.0 + nginx 安装
- linux系统基础之--进程计划(基于centos7.4 1708)
热门文章
- 安装部署Spark 1.x Standalone模式集群
- springboot+https+http
- (三)MongoDB增、删、改、查
- Clion中配置使用更大的栈(防止开大一点的数组异常)
- Spring Boot 2.0 整合携程Apollo配置中心
- 性能测试基础---事务&;检查点&;思考时间&;集合点
- 项目Beta冲刺(团队)——05.25(3/7)
- MySQL 8.x 函数和操作符,官方网址:https://dev.mysql.com/doc/refman/8.0/en/functions.html
- Python下编写Windows自动化测试软件
- ssh ssm ssi 服务器平台架构