For the select few who prefer the Linux development environment
Requirements
First of all, you need a few things to get you started. These are: Android SDK and Apache Ant . Of course you will need the Java SDK (JDK).
To make the Android SDK work for all users, you need to modify the /etc/environment file and then restart the computer. But if you do not want this difficult path, follow me, think of yourself as the only PC user. And use the file /home/YOUR_USERNAME/.bashrc for editing.
Remember your home path once to prevent further long lines. Add this to your /home/YOUR_USERNAME/.bashrc :
export HOME="/home/YOUR_USERNAME"
Then we will use the notation $HOME if we want to say " /home/YOUR_USERNAME directory ".
Android SDK setup
Download the Android SDK archive and unzip it somewhere. Say in your home directory $HOME/adt-bundle/ .
Add these lines to your $HOME/.bashrc :
export ANDROID_HOME="$HOME/android-bundle/sdk/tools" export ANDROID_PLATFORM_TOOLS="$HOME/android-bundle/sdk/platform-tools" export PATH="$ANDROID_HOME:$ANDROID_PLATFORM_TOOLS:$PATH"
Ant Tuning
As with the Android SDK, download the archive and unzip it to your home directory. Then add them to your .bashrc :
export ANT_HOME="$HOME/ant" export PATH="$PATH:$ANT_HOME/bin"
I installed one via apt-get , so this did not affect my .bashrc .
Apply Changes
For these changes to work, you must either work in a new terminal window (open after ), or run source ~/.bashrc to make the changes available in the current terminal window.
Completion
At the end you will receive:
- Two directories in your home directory -
ant and android-bundle A few lines added to your .bashrc :
export ANDROID_HOME="$HOME/android-bundle/sdk/tools" export ANDROID_PLATFORM_TOOLS="$HOME/android-bundle/sdk/platform-tools" export PATH="$ANDROID_HOME:$ANDROID_PLATFORM_TOOLS:$PATH" export ANT_HOME="$HOME/ant" export PATH="$PATH:$ANT_HOME/bin"
shybovycha Jan 15 '14 at 16:09 2014-01-15 16:09
source share