Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio offline installation

My windows XP development environment has no internet access. So I need to install Android Studio without internet connection. (Formerly I used 1-2 months IntelliJ IDEA 12 for android development)

The steps I made:

  • I downloaded studio 0.2.x installation files from developer site (http://developer.android.com/sdk/installing/studio.html).
  • I downloaded JDK and installed.
  • I already installed Android SDK package installer, downloaded API files and installed that files by using this package installer. (http://siddharthbarman.com/apd/)

I tried to create new project. I get "gradle" error. It seems like gradle is bundled inside studio but because of error exists, I downloaded gradle-1.6.zip from their website. (http://www.gradle.org/downloads) I added gradle\bin to my PATH environment variable.

Then I still get new errors that maven is missing. It seems like I need to download maven but I even don't know the version.

Can you write step by step that how many more programs / libraries should I download to get Hello world from Android studio and Android emulator ?

Note: I download files from a machine that has internet connection, copy them to flash disk and move to my development machine.

like image 636
trante Avatar asked Jul 07 '26 22:07

trante


1 Answers

There is no need to download Maven. Android Studio only uses Gradle. However, the first time you build your project, you'd need to have a internet connection so that the Android Gradle plugin and all its dependencies are downloaded and cached on your local disk. With an active internet connection, do:

$ cd /path/to/project
$ /path/to/gradle assembleDebug

Once that works, then you shouldn't need an internet connection.

Android Studio will eventually support such an offline mode.

like image 78
Siva Velusamy Avatar answered Jul 09 '26 11:07

Siva Velusamy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!