android studio 3.6.1導入項目報錯提示無法下載classpath里的內(nèi)容
報錯:
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all artifacts for configuration ‘:classpath’.
原因:
百度說是無法下載classpath里的內(nèi)容,具體不是很清楚
解決方法:
百度到了很多方法,單個嘗試都解決不了,然后把解決方法結(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導入項目報錯提示無法下載classpath里的內(nèi)容的文章就介紹到這了,更多相關(guān)android studio 3.6.1導入項目報錯內(nèi)容請搜索好吧啦網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持好吧啦網(wǎng)!
相關(guān)文章:
1. jsp網(wǎng)頁實現(xiàn)貪吃蛇小游戲2. SpringMVC+Jquery實現(xiàn)Ajax功能3. HTML5 Canvas繪制圖形從入門到精通4. JavaScript實現(xiàn)組件化和模塊化方法詳解5. .Net Core和RabbitMQ限制循環(huán)消費的方法6. ASP.NET MVC遍歷驗證ModelState的錯誤信息7. 淺談SpringMVC jsp前臺獲取參數(shù)的方式 EL表達式8. jsp+servlet簡單實現(xiàn)上傳文件功能(保存目錄改進)9. ASP中if語句、select 、while循環(huán)的使用方法10. asp(vbs)Rs.Open和Conn.Execute的詳解和區(qū)別及&H0001的說明
