Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I set up Android Studio to work completely offline?

I have very slow bandwidth, so I'm trying to keep all the required files on the local machine to work with Android Studio completely offline. When I click on "New Project" it always tries to download a file named gradle-1.6-bin.zip which I downloaded and tried to install locally via the plugin manager but it gives me an error:

fail to load plugin descriptor from file gradle-1.6-bin.zip

So what other files do I need to download and how do I install them properly to work offline with Android Studio?

like image 729
avirk Avatar asked Aug 10 '13 02:08

avirk


People also ask

How can I use Android Studio completely offline?

Open the Preferences window by clicking File > Settings (on Mac, Android Studio > Preferences). In the left pane, click Build, Execution, Deployment > Gradle. Check the Offline work checkbox. Click Apply or OK.

Does Android Studio require internet connection?

Currently Android Studio's Gradle implementation requires a fast stable network connection. For whatever reason, the developers have decided to force this requirement on users at this time.

Does Gradle build require internet connection?

Gradle needs an internet connection to download the dependencies that you specify. Once it downloads everything, it can put them in memory so that you can work offline. To do this, you need to go to Files->Settings (For Mac: Android Studio-> Settings...). You can now build your project without internet.


1 Answers

Android Studio 0.4.0 now includes support for offline:

http://tools.android.com/recent/androidstudio040released

"You can now open the Compiler > Gradle options and enable Offline mode, which will tell Gradle to ignore update-to-date checks"

Updated Nov 2018: Now you can Open preferences, then search for "offline" and in the results select gradle and click "Offline work"

like image 109
bkurzius Avatar answered Nov 04 '22 00:11

bkurzius