當我們添加某些依賴庫(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 。

