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.
> 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.
在添加Facebook 中一个关于网络的库的时候,一直添加不上去,最后是发现,原来我的gradle设置的有问题
设置-》Gradle -> 看看右侧的
offline work 是否打钩了,如果打钩了,取消掉,然后重新gradle一下,应该就正常了