Skip to content

Instantly share code, notes, and snippets.

@jpswade
Last active July 4, 2024 09:38
Show Gist options
  • Save jpswade/33841e261b28073d9e7551922acea1f2 to your computer and use it in GitHub Desktop.
Save jpswade/33841e261b28073d9e7551922acea1f2 to your computer and use it in GitHub Desktop.
Install android on centos
#!/bin/sh
# yum install android-tools -y
yum install java-1.8.0-openjdk-devel
mkdir -p android-sdk-linux
cd android-sdk-linux
# @see https://developer.android.com/studio/index.html
wget --output-document=android-sdk.zip --quiet https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip
unzip android-sdk.zip
rm -f android-sdk.zip
yes | tools/bin/sdkmanager --licenses
tools/bin/sdkmanager "tools" "platform-tools" "extras;google;m2repository"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment