Game Development Reference
In-Depth Information
Installing Android development tools on
Linux
Installation of the basic tools on Linux is as easy as it was with their Windows counterpart. In
this recipe, we will see how to install the basic Android development tools on *nix systems.
Getting ready
We assume you already have an Ubuntu/Debian system with the apt package manager. Refer
to http://wiki.debian.org/Apt for details.
How to do it...
Carry out the following steps to install the required basic tools:
1.
Make sure you are using the latest version of the packages for your OS by running the
following command:
>sudo apt-get update
2.
Install OpenJDK 6+:
>sudo apt-get install openjdk-6-jdk
3.
Install the Apache Ant build automation tool:
>sudo apt-get install ant
4.
Download the oficial Android SDK from http://developer.android.com . There
is a bigger package next to it, with the ADT plugin for the Eclipse IDE. However, since
we do all of our development from the command line, we won't need it. Run the
following command:
>wget http://dl.google.com/android/android-sdk_r22.2.1-linux.tgz
5.
Unpack the downloaded . tgz ile (the actual version might vary, 22.2.1 is the latest
version as of October 2013):
>tar -xvf android-sdk_r22.2.1-linux.tgz
6.
Use ~/<sdk>/tools/android to install the latest Platform Tools and all of the
SDKs—just like in the Windows case.
Failure to do so will result in an error while trying to use the Ant tool when building
any application for the Android.
7.
Get the oficial Android NDK from http://developer.android.com :
>wget http://dl.google.com/android/ndk/android-ndk-r9b-
linux-x86_64.tar.bz2
 
Search WWH ::




Custom Search