(!) 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

UPDATE IN PROGRESS: This page needs to be updated to a more current version of Android development tools. As of October 2018, updates to support Android P with Build Tools for API 28 are being implemented.


  • 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-8-jdk


  • 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
  • You may need to run  sudo chmod 777 -R studio.sh, see here for more details.

  • 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 28.0.3 and Android APIs 28 (Pie) -or any other API level that you need-.

  • 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

Wiki: android/kinetic/Android Studio/Download (last edited 2019-07-24 22:37:27 by Tav_PG)