## page was renamed from android/Tutorials/hydro/Ros Installation
## For instruction on writing tutorials
## http://www.ros.org/wiki/WritingTutorials
####################################
##FILL ME IN
####################################
## for a custom note with links:
## note =
## for the canned note of "This tutorial assumes that you have completed the previous tutorials:" just add the links 
## note.0= 
## descriptive title for the tutorial
## title = Android Studio & Tools Download
## multi-line description to be displayed in search 
## description = Downloading the build tools, sdk and android studio.
## the next tutorial description (optional)
## next =
## links to next tutorial (optional)
## next.0.link=
## next.1.link=
## what level user is this tutorial for 
## level= BeginnerCategory
## keywords = android installation
####################################

<<IncludeCSTemplate(TutorialCSHeaderTemplate)>>

== PreRequisites ==

 * You will need a java development kit. We have not had problems with openjdk so far. However, if you are low on memory you may want to use the Oracle JDK. Android Studio will give you a warning on start up if you use openjdk, but we just ignore it right now. Read below if you want more information on which jdk to use. To install openjdk:

{{{
$ sudo apt-get install openjdk-7-jdk
# Pre Trusty 64-bit machines will also need ia32-libs
}}}

== Installation ==

 * Download [[http://developer.android.com/sdk/installing/studio.html#download|android studio]]
 * Unzip somewhere - e.g. `/opt/android-studio`
   * If you install to /opt, you'll need to fix permissions vis chown to a suitable user
 * Next, setup the studio and download the SDK!
{{{
$ /opt/android-studio/bin/studio.sh
}}}
  * Choose a location for the sdk, e.g. `/opt/android-sdk`
  * Start download, this takes a while -> get your [[http://chimek.yujinrobot.com|chimek]] ready!
  * From the welcome window, select `Configure->SDK Manager` option and make sure you have installed Android SDK Build Tools 21.1.2, Android APIs 10 (gingerbread), 13 (honeycomb), 15 (ice cream), 18 (jellybean).
  * Some settings you might like to configure:
   * Version Control->Github
  * From the welcome window, click the `Check for updates now` and make sure you have the latest.
 * Add to your `PATH`. If you put the files anywhere other than `/opt/android-studio` and `/opt/android-sdk` you will have to tweak the following command to suit:

{{{
$ echo export PATH=\${PATH}:/opt/android-sdk/tools:/opt/android-sdk/platform-tools:/opt/android-studio/bin >> ~/.bashrc
$ echo export ANDROID_HOME=/opt/android-sdk >> ~/.bashrc
}}}

## AUTOGENERATED DO NOT DELETE 
## TutorialCategory
## FILL IN THE STACK TUTORIAL CATEGORY HERE