踩坑實錄 Android studio中關於 No cached version of **** available for of處理辦法


當我們添加某些依賴庫(Okhttp、Retrofit)時, Android studio 會報如下錯誤:

Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_iranDebugCompile'.
   > Could not resolve com.facebook.network.connectionclass:connectionclass:1.0.1.
     Required by:
         doctor:app:unspecified
      > No cached version of com.facebook.network.connectionclass:connectionclass:1.0.1 available for offline mode.

需要注意的在最后一行,  > No cached version of com.facebook.network.connectionclass:connectionclass:1.0.1 available for offline mode.

我們需要做的是,取消紅色邊框標記的選項,然后 build Gradle 。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM