Please ask about problems and questions regarding this tutorial on answers.ros.org. Don't forget to include in your question the link to this page, the versions of your OS & ROS, and also add appropriate tags. |
Android Studio & Tools Download
Description: Downloading the build tools, sdk and android studio.Keywords: android installation
Tutorial Level: BEGINNER
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 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 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