Android studio setup


The following instructions are just the summary of the Google Android Studio official documentation on Ubuntu 14.10 x64


Setup Android Studio

  1. Download application
  2. Unzip application
  3. Install required libraries
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 lib32bz2-1.0


Setup ADB

Official Google documentation: https://developer.android.com/studio/command-line/index.html

# Go to the path of android-sdk
sudo ln -s /mnt/temp/Dev/android-sdk ~/android-sdk
sudo ln -s /mnt/temp/Dev/android-sdk/platform-tools/adb /usr/bin/adb

# Test
adb version


Android device (USB)

Official documentation: https://developer.android.com/studio/run/device.html#setting-up


Create configuration file

sudo vim /etc/udev/rules.d/51-android.rules


Add the following line

SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", MODE="0666", GROUP="plugdev"
  • The MODE assignment specifies read/write permissions
  • And GROUP defines which Unix group owns the device node.


sudo chmod a+r /etc/udev/rules.d/51-android.rules


reboot computer


(i) If you have issues you can follow that excellent post: http://askubuntu.com/questions/461729/ubuntu-is-not-detecting-my-android-device


Android first app

Link to Google's tutorial: https://developer.android.com/training/basics/firstapp/index.html



Documentation

https://developer.android.com/index.html