Created
May 6, 2022 11:11
-
-
Save CypherpunkSamurai/6a0b85b42146d7ffc90f61faae070124 to your computer and use it in GitHub Desktop.
Android SDK Install and Build
This file contains hidden or 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
| export ANDROID_HOME=\"/opt/android/sdk\" | |
| export PATH=$PATH:/opt/android/sdk/cmdline-tools/tools/bin | |
| if [ ! -d \"$ANDROID_HOME/cmdline-tools\" ]; then | |
| curl -o sdk.zip https://dl.google.com/android/repository/commandlinetools-linux-7583922_latest.zip | |
| unzip sdk.zip | |
| rm sdk.zip | |
| mkdir \"$ANDROID_HOME/cmdline-tools\" | |
| mv cmdline-tools \"$ANDROID_HOME/cmdline-tools/tools\" | |
| yes | \"$ANDROID_HOME/cmdline-tools/tools/bin/sdkmanager\" --licenses | |
| fi | |
| chmod +x gradlew | |
| #./gradlew assembleDebug | |
| ./gradlew assembleRelease |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment