Skip to content

Instantly share code, notes, and snippets.

@wesleyit
Last active May 24, 2017 18:43
Show Gist options
  • Save wesleyit/37e52b8bf0227d2f36d2 to your computer and use it in GitHub Desktop.
Save wesleyit/37e52b8bf0227d2f36d2 to your computer and use it in GitHub Desktop.
This script will export many useful environment variables related to Android Studio and Android SDK.
#!/bin/bash
# ##########################################################
# set_android-studio_env.sh
# This script will export many useful environment variables
# related to Android Studio and Android SDK.
# Wesley Rodrigues da Silva <wesley.it at gmail.com>
# LICENCE CREATIVE COMMONS BY - 2014
# http://creativecommons.org/licenses/by/2.0/legalcode
# ##########################################################
## Where is your Android Studio folder?
export ANDROID_STUDIO_HOME="/opt/android-studio"
## Ok, don't change this
export ANDROID_HOME="$ANDROID_STUDIO_HOME/sdk"
export ANDROID_BINDIRS="$ANDROID_STUDIO_HOME/bin:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools"
export PATH="$ANDROID_BINDIRS:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment