Sunday, January 20, 2013

How to install Android SDK, Android Platfrom tools (adb, aapt, ddms, fastboot, etc) on Archlinux

If you using archlinux and want to develop android application. Then you must install Android SDK. To install manually you can download the package from android sdk website.

About Android SDK:
The Android SDK provides you the API libraries and developer tools necessary to build, test, and debug apps for Android.
To download the packages here's the android sdk sites:

For the easy way to install, Android SDK & Platform Tools is available on AUR.
Note if you using Archlinux 64bit: You must enable multilib repo, to be able install the required packages.

1. Android SDK
To install ANDROID SDK:
$tar -xvzf android-sdk.tar.gz
$cd android-sdk
$makepkg -s
$sudo pacman -U *.pkg.tar.xz

2. Android
To install ANDROID Platform tools:
$tar -xvzf android-sdk-platform-tools.tar.gz
$cd android-sdk-platform-tools
$makepkg -s
$sudo pacman -U *.pkg.tar.xz

Done, all files installed on /opt/android-sdk/
To be able to use adb, fastboot, ddms, other commands you must create symbolic link to executable file manually. For this example:

$sudo ln -s /opt/android-sdk/platform-tools/adb /usr/bin/adb

$sudo ln -s /opt/android-sdk/platform-tools/fastboot /usr/bin/fastboot

$sudo ln -s /opt/android-sdk/tools/ddms /usr/bin/ddms

and so on for other binary/executable files.

To run Android SDK, on LXDE is available on Programming Menu, then choose Android SDK. If android SDK not running. Same as above
$sudo ln -s /opt/android-sdk/tools/android /usr/bin/android

Now try again to running Android SDK, if still not running try run on terminal

Here's the Android SDK. When first opening:

ADB commands:

Fastboot commands:

DDMS apps:

That's some application on Android SDK & Platform Tools, now you can develop android Apps on Archlinx.

For Installing ADB only you can install android-tools
#pacman -S android-tools android-udev

Share on Facebook
Share on Twitter
Share on Google+