Skip to content

Instantly share code, notes, and snippets.

@petabyt
Last active February 18, 2024 09:42
Show Gist options
  • Save petabyt/c83094677995d90ee3757f8fb3d4c00a to your computer and use it in GitHub Desktop.
Save petabyt/c83094677995d90ee3757f8fb3d4c00a to your computer and use it in GitHub Desktop.
Debian/ubuntu android auto install instructions

Install debian android build tools

Most of what you need:

sudo apt install android-sdk android-sdk-platform-23 

If you can't find it, just download Android Studio and abandon this guide.

Accept the android licenses

git clone https://github.com/Shadowstyler/android-sdk-licenses.git
sudo cp -a android-sdk-licenses/*-license /usr/lib/android-sdk/licenses
rm -rf android-sdk-licenses

Also,

You'll want to make a local.properties file to tell Gradle where the SDK is:

sdk.dir=/usr/lib/android-sdk/
ndk.dir=/usr/lib/android-ndk/

(ndk.dir isn't necessary, but it would be if you want to use C/C++).

If you want to install the NDK:

sudo apt install google-android-ndk-installer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment