新版3.6.1 Android Studio 解决AndroidStudio编译出现available for offline mode的问题

问题

异常全文
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.

旧版解决
image.png
新版解决
image.png

你可能感兴趣的:(新版3.6.1 Android Studio 解决AndroidStudio编译出现available for offline mode的问题)