捡来的笔记

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

转载请注明出处:
http://dyhdyh.com/archives/196.html

异常全文

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. phentermine 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的版本

SettingsBuild.Execution,DeploymentGradle取消勾选的Offline Work,重新编译即可。

点赞

发表评论