当前位置:网站首页>Gradle下载慢或无法下载
Gradle下载慢或无法下载
2022-06-29 16:27:00 【红色与青色】
由于网络的原因,有些地方连接下载Gradle没问题,有些地方就不行,所以需要想办法解决 先说下载,打开文件gradle-wrapper.properties文件,修改distributionUrl
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip把services.gradle.org改成downloads.gradle-dn.com
distributionUrl=https\://downloads.gradle-dn.com/distributions/gradle-7.4-bin.zip当然这方法可能有些地方不行,实在不行就上代理吧
再说Gradle下载jar包慢,在build.gradle文件的repositories{}内添加上阿里的仓库
repositories {
mavenCentral()
maven { url "https://maven.aliyun.com/repository/public" }
maven { url "https://maven.aliyun.com/repository/central" }
}当然,如果添加了阿里仓库还不行的话只能找其他方法了,根据需求自己添加阿里仓库服务
边栏推荐
- 「BUAA OO Unit 4 HW16」第四单元总结与课程回顾
- Key sprite fighting monsters - window binding skill
- 八年测开经验面试28K公司后,吐血整理出高频面试题和答案
- After studying this series of notes about software testing, it is a "bonus" to enter the factory
- PHP delete directory
- Self taught programming can understand the code, but what if you can't write it yourself
- Sophon autocv: help AI industrial production and realize visual intelligent perception
- 能够1年涨薪2次的软件测试工程师,他到底强在哪里?
- MATLAB给数据加噪声/扰动
- After reading the complete code
猜你喜欢

隐私计算助力数据的安全流通与共享

元代理模型可迁移对抗攻击

MySQL基础——事务

iNFTnews | Meta在元宇宙中的后续计划会是什么?

Sophon AutoCV:助力AI工业化生产,实现视觉智能感知

Sophon autocv: help AI industrial production and realize visual intelligent perception

「科普大佬说」AI与创造力

Technology sharing | broadcast function design in integrated dispatching

How to configure logback? 30 minutes for you to thoroughly learn the code to stay up late and knock

又拍云 Redis 的改进之路
随机推荐
MySQL基础——多表查询
Time format GTM to Beijing time
Comprehensive analysis of Seata distributed transaction at and XA
MATLAB输出格式控制 %d,%f,%c,%s的用法
Cv5200 ad hoc network remote WiFi module, UAV wireless image transmission application, HD low delay scheme
腾讯云发布CDW ClickHouse升级版,为海量数据实时分析场景提供极速体验
After reading the complete code
DAP大屏主题开发说明
Actual combat | magical conic gradient
Telnet+ftp to control and upgrade the equipment
小程序在产业互联网有「大」作为
Privacy computing helps secure data circulation and sharing
GNN笔记:消息传播模型
Selenium 凭什么成为 Web 自动化测试的首选?(内附源码)
Implement a ThreadLocal by yourself
Tool chain empowers hundreds of companies, horizon opens the "Matthew effect" of mass production of intelligent driving
Key sprite fighting monsters - window binding protection skills and click skills
Mathematical knowledge: finding combinatorial number II - finding combinatorial number
Real test = "half product + Half development"?
「BUAA OO Unit 4 HW16」第四单元总结与课程回顾