No cached version available for offline mode error, gradle offline mode switch position (AndroidStudio 3.6.1 or above)

When running an old project, I encounter a prompt that gradle3.5.5.jar cannot be downloaded.... No cached version available for offline mode and an error message is reported.

Comparison found that the old Android Studio turned off offline mode in the settings, while the version 3.6.1 or above changed it to an icon in view-gradle, which needs attention.

The gradle paging in the settings has unchecked the offline mode option. 

 

Click this icon to switch offline mode.

After turning off offline, re-sync the download and resume operation.

 

Guess you like

Origin blog.csdn.net/loveseal518/article/details/125652708