Skip to content

Instantly share code, notes, and snippets.

@mofosyne
Last active August 31, 2023 15:47
Show Gist options
  • Save mofosyne/39dc2d6ae5ae3b378c8571c6538fe07a to your computer and use it in GitHub Desktop.
Save mofosyne/39dc2d6ae5ae3b378c8571c6538fe07a to your computer and use it in GitHub Desktop.
Install Android Studio From Website Onto Debian
#!/usr/bin/env bash
# Based on https://techviewleo.com/how-to-install-android-studio-on-debian/
## You may need to update the url from https://developer.android.com/studio
DOWNLOAD_LINK=https://redirector.gvt1.com/edgedl/android/studio/ide-zips/2022.3.1.19/android-studio-2022.3.1.19-linux.tar.gz
ZIPNAME=android-studio-2022.3.1.19-linux.tar.gz
## Get latest jdk
sudo apt-get update
sudo apt-get install default-jdk
# Download and unpack to user's home folder
# Tip: Must let curl know to follow 302 redirect html code
# https://stackoverflow.com/questions/50347440/curl-302-moved-temporarily#50354587
cd ~/Download
curl --location -o $ZIPNAME "$DOWNLOAD_LINK"
tar -xvzf $ZIPNAME -C ~/
# Run Android Studio
cd ~/android-studio/bin
./studio.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment