Android Studio 2020新版本卡在Gradle downloading/sync failed/下載緩慢/下載超時(shí)的問(wèn)題
這個(gè)問(wèn)題卡了我三天
頭都疼了!
最終解決方法
新建一個(gè)項(xiàng)目,然后改兩個(gè)文件
build.gradle里面改成這個(gè):
buildscript { repositories { maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' } google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:4.1.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/' } google() jcenter() }}task clean(type: Delete) { delete rootProject.buildDir}
gradle版本我選擇4.1.1 上下兩個(gè)文件里面的gradle版本要統(tǒng)一。
gradle-wrapper.properties這樣改
distributionBase=GRADLE_USER_HOMEdistributionPath=wrapper/distszipStoreBase=GRADLE_USER_HOMEzipStorePath=wrapper/distsdistributionUrl=https://services.gradle.org/distributions/gradle-4.1.1-all.zip
三分鐘下完加載完并且沒(méi)有報(bào)錯(cuò),阿里云牛?。。。。?/p>
以后凡是和Marven、Gradle這兩個(gè)玩意相關(guān)的bug和問(wèn)題,我一律aliyun鏡像解決好吧!
到此這篇關(guān)于Android Studio 2020新版本卡在Gradle downloading/sync failed/下載緩慢/下載超時(shí)的問(wèn)題的文章就介紹到這了,更多相關(guān)Android Studio卡在Gradle下載慢內(nèi)容請(qǐng)搜索好吧啦網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持好吧啦網(wǎng)!
相關(guān)文章:
1. 完美解決vue 中多個(gè)echarts圖表自適應(yīng)的問(wèn)題2. SpringBoot+TestNG單元測(cè)試的實(shí)現(xiàn)3. vue實(shí)現(xiàn)web在線(xiàn)聊天功能4. idea配置jdk的操作方法5. VMware中如何安裝Ubuntu6. Springboot 全局日期格式化處理的實(shí)現(xiàn)7. python 浮點(diǎn)數(shù)四舍五入需要注意的地方8. Docker容器如何更新打包并上傳到阿里云9. Java GZip 基于內(nèi)存實(shí)現(xiàn)壓縮和解壓的方法10. JAMon(Java Application Monitor)備忘記
