3

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 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.

V-rund Puro-hit
  • 5,518
  • 9
  • 31
  • 50
trante
  • 33,518
  • 47
  • 192
  • 272

3 Answers3

2

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.

Siva Velusamy
  • 2,471
  • 17
  • 9
  • I can download dependencies from another machine and copy them with flash disk. I can also install studio to a machine having internet connection, then I can copy relevant files/folders from machine with internet to machine without internet. – trante Jul 17 '13 at 15:24
1

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"

bkurzius
  • 4,020
  • 2
  • 34
  • 34
-2

It doesn't work offline for creating new projects, so this is what I do and it works 100% offline!

  1. Download Gradle and setup Environment variables
  2. Create/Load project in Eclipse
  3. File > Export
  4. Select 'Generate Gradle build files'
  5. Select project
  6. Open AndroidStudio or IntelliJ13
  7. Import project
  8. Select 'Create project from existing sources'
  9. Done!

But I preferred to use 'android create project' command, then setup 'build.gradle' file manually.