博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
JCenter下载太慢, jcenter修改 https为http也许能帮助你
阅读量:7261 次
发布时间:2019-06-29

本文共 830 字,大约阅读时间需要 2 分钟。

今天导入一个工程到studio,一直卡在下载那块。

看到下载地址是:

https://jcenter.bintray.com/........
https!!!!

到浏览器下载,果然也下载不下来。。

于是把https换成http,到浏览器下载,很快就能下载下来。。

好的,怎么修改成http呢?我找了半天没找到。结果,尝试了一下,OK了!!!

下面是build.gradle的内容:主要增加了jcenter(){url 'http://jcenter/bintray.com/'} 

// Top-level build file where you can add configuration options common to all sub-projects/modules.buildscript {    repositories {        jcenter(){ url 'http://jcenter.bintray.com/'}    }    dependencies {        classpath 'com.android.tools.build:gradle:2.0.0'        // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { jcenter(){url 'http://jcenter.bintray.com/'} } } task clean(type: Delete) { delete rootProject.buildDir }

希望能帮到大家。

转载于:https://www.cnblogs.com/kenshinobiy/p/9189956.html

你可能感兴趣的文章
制作自己的MVC框架(二)——启动
查看>>
linux内核栈用户栈切换【转】
查看>>
离线安装PM2
查看>>
LR 两种html与url录制
查看>>
学习SpringMVC——你们要的REST风格的CRUD来了
查看>>
java中获取比毫秒更为精确的时间
查看>>
将数据导出到Excel2007格式。
查看>>
【SpringMVC学习07】SpringMVC中的统一异常处理
查看>>
C++语言出现的BUG
查看>>
java 集合
查看>>
【转载】ODBC, OLEDB, ADO, ADO.Net的演化简史
查看>>
Android 设置图片透明度
查看>>
EasyUI Window和Layout
查看>>
英语单词词性
查看>>
Cesium原理篇:3D Tiles(3)个人总结
查看>>
SpringBoot2 时间类型自动格式化 自动转换
查看>>
笔记--设计模式精解c++-GoF 23 种设计模式解析
查看>>
Android OpenGL(3)
查看>>
去掉StringBuilder或String 最后一个项逗号
查看>>
SaundProgressBar
查看>>