Created
October 26, 2020 09:07
-
-
Save mfdeveloper/71932cd31b2c01720cb456748c0461d5 to your computer and use it in GitHub Desktop.
Android: Setup environment variables to compile and run android apps from CLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Android | |
export ANDROID_SDK_ROOT=$HOME/Android/Sdk | |
export JAVA_HOME=$HOME/android-studio/jre | |
export PATH=$PATH:$ANDROID_SDK_ROOT/emulator | |
export PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin | |
export PATH=$PATH:$JAVA_HOME/bin | |
# Install Gradle cli with sdkman | |
# PS: On Android Studio 4.1+, the gradle CLI is not found in the studio folder :( | |
# See https://sdkman.io/install | |
skd install gradle 6.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment