java – Error:Could not download gson.jar (com.google.code.gson:gson:2.6.2): No cached version available for offline mode-ThrowExceptions

Exception or error:

Gradle sync failed: Could not download gson.jar (com.google.code.gson:gson:2.6.2): No cached version available for offline mode
Consult IDE log for more details (Help | Show Log)

How to solve:

Gradle is in offline mode. You will have to uncheck “Offline Work” in your settings to disable the offline mode.

Go to settings, search for “offline”, select & uncheck the offline work. Then turn on your internet connection and sync again.

Leave a Reply

Your email address will not be published. Required fields are marked *