android studio 3.6.1匯入專案報錯提示無法下載classpath裡的內容
阿新 • • 發佈:2020-05-12
報錯:
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all artifacts for configuration ‘:classpath'.
原因:
百度說是無法下載classpath裡的內容,具體不是很清楚
解決方法:
百度到了很多方法,單個嘗試都解決不了,然後把解決方法結合
在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() } }
然後要到gradle\wrapper\gradle-wrapper.properties裡把distributionUrl換成你本地的。
總結
到此這篇關於android studio 3.6.1匯入專案報錯提示無法下載classpath裡的內容的文章就介紹到這了,更多相關android studio 3.6.1匯入專案報錯內容請搜尋我們以前的文章或繼續瀏覽下面的相關文章希望大家以後多多支援我們!