解决AndroidStudio编译出现available for offline mode的问题

转载请注明出处:
http://blog.csdn.net/aa464971/article/details/68948650

异常全文

Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApkCopy'.
   > Could not resolve com.squareup.okhttp3:okhttp:3.5.0.
     Required by:
         retrofit-rxjava-okhttp:app:unspecified > com.squareup.retrofit2:retrofit:2.1.0
      > No cached version of com.squareup.okhttp3:okhttp:3.5.0 available for offline mode.

解决

截图是2.2的版本
解决AndroidStudio编译出现available for offline mode的问题_第1张图片

Settings-Build.Execution,Deployment-Gradle–取消勾选的Offline Work,重新编译即可。

你可能感兴趣的:(【开发工具】)