android-studio icon indicating copy to clipboard operation
android-studio copied to clipboard

Android Studio by Google packaged for Ubuntu

Android Studio for Ubuntu

Android Studio by Google packaged for Ubuntu

Visit the official website here

Based upon the work of @PaoloRotolo

How-to

Install android-studio

Download pre-built packages from our PPA

Build android-studio

Run configure with the parameters for the package you want to build:

./android-studio-configure (bionic|focal|jammy|kinetic|lunar) [--stable] [--metapackage] [--major 3.6]

E.g. to build the latest (unstable) version of Android Studio for Ubuntu jammy:

./android-studio-configure jammy

To build the latest stable version of Android Studio for Ubuntu focal including a metapackage that depends on this stable release:

./android-studio-configure jammy --stable --metapackage

To build the latest release of Android 3.6 for Ubuntu focal:

./android-studio-configure focal --major 3.6

To clean the environment after configuration:

./android-studio-configure clean

After configuring you can build the package as usual with debuild or pbuilder in the android-studio subdirectory

FAQ

Unable to start

Q: When I click on the icon, Android Studio just doesn't start.

A: Did you install Java? Try to install Java Development Kit with sudo apt install default-jdk.

Also, try:

/opt/android-studio/bin/studio.sh

If you have this error, you probably have to install the jdk:

Start Failed: Internal error. Please report to https://code.google.com/p/android/issues

java.lang.NoClassDefFoundError: com.intellij.util.lang.ClassPath
at java.lang.Class.initializeClass(libgcj.so.14)
[...]