Created
September 29, 2017 18:12
-
-
Save JosielFaleiros/c6eb264641db4697bf2c05e2fe958030 to your computer and use it in GitHub Desktop.
Install Android SDK on linux by CLI and Gradle
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 SDK | |
$ | |
wget https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip?hl=pt-br | |
unzip -d sdk-tools-linux-3859397.zip | |
cd tools/bin/ | |
./sdkmanager "build-tools;android-26" "platform-tools" "build-tools;26.0.2" | |
depending on what you are doing, maybe you'll have to install: | |
./sdkmanager "exts;google;m2repository" "extras;android;m2repository" | |
Gradle: | |
$ | |
wget https://services.gradle.org/distributions/gradle-4.2-bin.zip | |
# | |
mkdir /opt/gradle | |
unzip -d /opt/gradle gradle-4.2-bin.zip | |
export PATH=$PATH:/opt/gradle/gradle-4.2/bin | |
gradle -v |
to be in there after restarting the machine
https://stackoverflow.com/questions/26256279/how-to-set-android-home-path-in-ubuntu-please-provide-the-steps#answer-43474588
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
export ANDROID_HOME={YOUR_PATH}
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
source ~/.bashrc