android studio 3.6.1導(dǎo)入項(xiàng)目報(bào)錯(cuò)提示無法下載classpath里的內(nèi)容
報(bào)錯(cuò):
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all artifacts for configuration ‘:classpath’.
原因:
百度說是無法下載classpath里的內(nèi)容,具體不是很清楚
解決方法:
百度到了很多方法,單個(gè)嘗試都解決不了,然后把解決方法結(jié)合在build.gradle里
buildscript { repositories { google() mavenCentral() jcenter() } dependencies { classpath ’com.android.tools.build:gradle:3.6.1’ }}allprojects { repositories { google() maven { url ’https://maven.google.com’ } jcenter() }}
然后要到gradlewrappergradle-wrapper.properties里把distributionUrl換成你本地的。
總結(jié)
到此這篇關(guān)于android studio 3.6.1導(dǎo)入項(xiàng)目報(bào)錯(cuò)提示無法下載classpath里的內(nèi)容的文章就介紹到這了,更多相關(guān)android studio 3.6.1導(dǎo)入項(xiàng)目報(bào)錯(cuò)內(nèi)容請(qǐng)搜索好吧啦網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持好吧啦網(wǎng)!
相關(guān)文章:
1. SpringBoot+TestNG單元測(cè)試的實(shí)現(xiàn)2. Springboot 全局日期格式化處理的實(shí)現(xiàn)3. JAMon(Java Application Monitor)備忘記4. 完美解決vue 中多個(gè)echarts圖表自適應(yīng)的問題5. IntelliJ IDEA設(shè)置默認(rèn)瀏覽器的方法6. idea配置jdk的操作方法7. VMware中如何安裝Ubuntu8. python 浮點(diǎn)數(shù)四舍五入需要注意的地方9. Java GZip 基于內(nèi)存實(shí)現(xiàn)壓縮和解壓的方法10. Docker容器如何更新打包并上傳到阿里云
