Android development environment under Arch Linux Android 11.12.2013

First of all we need JDK (Java Development Kit), JRE (Java Runtime Environment) and VirtualBox.

yaourt -S jdk7-openjdk jdk7-openjdk virtualbox virtualbox-host-modules

Than, we will use Android Studio as IDE. Package android-studio will install android-sdk as its dependency.

yaourt -S android-studio

Next, we should run sudo /opt/android-sdk/tools/android and select desirable version of Android SDK.

Setup path to Android SDK. Start Android Studio, you are at Welcome to Android Studio Dialog, pass next steps.

  1. Click on Configure » Project Defaults » Project Structure;
  2. Click on SDKs in the left column;
  3. In the middle column Click on Android SDK (with Android icon) OR click plus on the top if you don't see an entry with Android icon;
  4. Change SDK Home Path and select valid Target.

Finally, we will use genymotion for local testing and debugging.

yaourt -S genymotion

Don't forget to setup correct path to Android SDK.

I use Genymotion plugin for Android Studio for quick access to emulators.

  1. Go to Preferences / Plugins and click Browse Repositories;
  2. Search for Genymotion;
  3. Right click on it and choose Download and Install;
  4. Restart Android Studio;
  5. Click the icon and it will bring up Preferences. Choose the path to the Genymotion application;
  6. Now if you click the Genymotion icon again, you will see the list of available devices.

I had network problems between VirtualBox and my network device. It solved with adding follow strings to /etc/modules-load.d/virtualbox.conf.

# sudo vim /etc/modules-load.d/virtualbox.conf

vboxdrv 
vboxnetadp
vboxnetflt

And manually load for current session

sudo modprobe vboxdrv vboxnetadp vboxnetflt

We can check current Android SDK version with this command

android sdk

Also, we can colorize Android Studio with solarized.

That is all, we have full stack for Android development.