the most awesome guy ever.

The Blog of Darryl E. Clarke

  Random musings from a jaded coder who just needs a hug.

A Quickie on Using Android Studio on Ubuntu

The original post below applies to old versions. For 0.4.x plus, you don’t need to do this. You just need to have a proper Oracle JRE/JDK installed system wide which you can do with this:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update && sudo apt-get install oracle-jdk7-installer

With the recent preview release of Android Studio it’s important to know that it won’t work properly on Ubuntu with the OpenJDK that’s available.

Fortunately, it’s easy to get it going.

  1. Download the official Oracle JDK
  2. Unpack it (I put mine in ~/SDK/jdk1.7.0_21/ )
  3. Point your JAVA_HOME to this.
    ~/android-studio/bin$ export JAVA_HOME=~/SDK/jdk1.7.0_21/
  4. Run the android studio startup script.
    ~/android-studio/bin$ ./studio.sh
  5. Make awesome android apps.

Have Fun!

Tags: , , ,

  • Adedamola Davies

    This isn’t very explanatory. Could you break down numbers 2 and 3 into smaller simpler points? Thanks.

    • Darryl E. Clarke

      Sorry, I generally omit fundamentals like unzipping a file and setting an environment variable. The things I write are short, tips-and-tricks and not necessarily for beginners.

  • Christopher Barron

    perfect! just what I needed. Thank you for the awesome info!

    • smartssa

      Glad the info is still useful. Thanks for the comment!