您的位置:首頁技術文章
文章詳情頁

android studio 3.6.1導入項目報錯提示無法下載classpath里的內容

瀏覽:9日期:2022-09-24 13:10:25

報錯:

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() }}

然后要到gradlewrappergradle-wrapper.properties里把distributionUrl換成你本地的。

總結

到此這篇關于android studio 3.6.1導入項目報錯提示無法下載classpath里的內容的文章就介紹到這了,更多相關android studio 3.6.1導入項目報錯內容請搜索好吧啦網以前的文章或繼續瀏覽下面的相關文章希望大家以后多多支持好吧啦網!

標簽: Android
相關文章:
国产综合久久一区二区三区