分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 教程案例

JCenter下载太慢, jcenter修改 https为http也许能帮助你

发布时间:2023-09-06 02:00责任编辑:林大明关键词:http

今天导入一个工程到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}

希望能帮到大家。

JCenter下载太慢, jcenter修改 https为http也许能帮助你

原文地址:https://www.cnblogs.com/kenshinobiy/p/9189956.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved