You are here

Chapter 03: Install the Android SDK

Visit http://developer.android.com/sdk/index.html and download the Linux version (ex: android-sdk_r16-linux.tgz) to your Downloads folder.

Create a "Dev" folder and unpack the Android SDK there and update it:

$ cd
$ mkdir Dev
$ cd Dev
$ tar xvfz ~/Downloads/android-sdk*
$ cd android-sdk*
$ tools/android update sdk

You will now be shown a dialog where you will get the possibility to accept that a whole bunch of packages will be downloaded. My recommendation is to click "Cancel" here:

You will then get to a list with more specific choices. I select "Android 2.1" in my example, as the oldest Android device I have here at home is a Sony Ericsson X10 Mini Pro with Android 2.1, plus "Tools" and "Extras". If you want to integrate ads from AdMob in your app you also need to include the latest version (in this case 4.0.3), so I pick that one also.:

Then click on "Install packages" and when all downloads and unpacking are finished, you can close the window.

After this, I want to move away the Android SDK from my home directory, as I don't need it to be backed up quite as frequently as the files I usually keep there (replace "ajo" with your own user name below):

$ sudo mv android-sdk-linux/ /opt/
$ sudo chown -R ajo:ajo /opt/android-sdk*

 

Comments

ajo's picture

It is of course possible to develop Android apps in Windows also, as long as it is a version with support for more than 1 GB RAM, or if you are really patient.

Just download the Windows version (exe) of the Android SDK instead and let the installer start the SDK Manager automatically at the end.

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer