Pages

Friday, May 1, 2015

Ubuntu 14 Android Studio setup notes


Setting up Android Studio on Ubuntu requires many extra packages. Here are some notes on setting up the latest versions. Special note that you want a CPU that supports the android emulator. I used an AMD with graphics support.

-------------------
#requires java 7

sudo apt-get install default-jdk

#getting the packages

mkdir Android

cd Android

wget http://dl.google.com/android/android-sdk_r24.0.2-linux.tgz

tar -xvzf android-sdk_r24.0.2-linux.tgz

wget https://dl.google.com/dl/android/studio/ide-zips/1.1.0/android-studio-ide-135.1740770-linux.zip

unzip android-studio-ide-135.1740770-linux.zip

#add $PATH to end of  ~/.bashrc file

export PATH=$PATH:~/Android/android-studio/bin

#required packages 

sudo dpkg --add-architecture i386
sudo apt-get update

sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386

#setup the KVM (virtual machine)

#verify kvm is funtional before running android studio setup.

#http://sharadchhetri.com/2014/10/09/install-kvm-kernel-based-virtual-machine-ubuntu-14-04-lts-desktop/

#https://help.ubuntu.com/community/KVM/Installation

sudo apt-get install qemu-kvm libvirt-bin bridge-utils
sudo apt-get install virt-manager
sudo apt-get install qemu-system

#logout or reboot

#start studio by opening termainal and run studio.sh

#update the sdk and add emulators


https://gist.github.com/anonymous/d305c68ea5d182a20f06#file-android_studio_on_ubuntu