How to disable gradle 'offline mode' in android studio?

Loganathan picture Loganathan · Feb 25, 2015 · Viewed 166.7k times · Source

I am new to android studio IDE development. Every time when I imported a sample project that developed in the android studio, I am getting this error..

No cached version of com.android.tools.build:gradle:1.1.0 available for offline mode. Disable Gradle 'offline mode' and sync project.

How can I solve this problem.

Answer

独步清风 picture 独步清风 · Jun 12, 2015

On Windows:-

Go to File -> Settings.

And open the 'Build,Execution,Deployment'. Then open the

Build Tools -> Gradle

Then uncheck -> Offline work on the right.

Click the OK button.

Then Rebuild the Project.

On Mac OS:-

go to Android Studio -> Preferences, and the rest is the same. OR follow steps given in the image

[For Mac go 1

enter image description here