当我们添加某些依赖库(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 。

踩坑实录   Android studio中关于 No cached version of **** available for of处理办法

相关文章:

  • 2022-01-21
  • 2021-05-21
  • 2022-12-23
  • 2021-11-07
  • 2021-06-26
  • 2021-05-05
  • 2022-12-23
猜你喜欢
  • 2021-05-06
  • 2021-06-15
  • 2021-09-10
  • 2021-07-31
  • 2021-07-16
  • 2021-09-14
  • 2021-10-24
相关资源
相似解决方案