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:
developer.android.com/sdk/index.html

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

https://aur.archlinux.org/packages/android-sdk/
To install ANDROID SDK:
$wget https://aur.archlinux.org/packages/an/android-sdk/android-sdk.tar.gz
$tar -xvzf android-sdk.tar.gz
$cd android-sdk
$makepkg -s
$sudo pacman -U *.pkg.tar.xz

2. Android

https://aur.archlinux.org/packages/android-sdk-platform-tools/
To install ANDROID Platform tools:
$wget https://aur.archlinux.org/packages/an/android-sdk-platform-tools/android-sdk-platform-tools.tar.gz
$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:

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


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

DDMS
$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
$./opt/android-sdk/tools/android

Here's the Android SDK. When first opening:
How to install Android SDK, Android Platfrom tools (adb, aapt, ddms, fastboot, etc) on Archlinux


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


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

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


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

Enjoy.
Share on Facebook
Share on Twitter
Share on Google+