Saturday, September 4, 2010

Installing the Android development tools on multiple machines

If you need to install the Android development tools on many machines, you can install everything into a single folder and zip it up. Once you have the .zip file, you don't have to run any installers on the other machines. Just unzip and set up environment variables. To make it even easier and non-intrusive, make a .bat file to set up local environment variables just for when you need it.

For a full installation, the .zip file would contain the following folders:

android-ndk-r4b
android-sdk-windows
apache-ant-1.8.1
cygwin
jdk1.6.0_21

The .bat file could look something like this:

@echo off
set JAVA_HOME=D:\Android\jdk1.6.0_21
set ANT_HOME=D:\Android\apache-ant-1.8.1
set ANDROID_HOME=D:\Android\android-sdk-windows
set NDKROOT=D:\Android\android-ndk-r4b
set CYGWIN_HOME=D:\Android\Cygwin
path=%PATH%;%JAVA_HOME%\bin;%ANT_HOME%\bin;%ANDROID_HOME%\tools;%CYGWIN_HOME%\bin
echo Android environment is now set up.

No comments:

Post a Comment