how to setup Android build env in headless mode
Google provided detailed help on how to setup Android build environment via Android studio, however, as a CI user, more often than not, we are working from a headless environment, and we wish to setup the environment using a simple shell script. I hope the following may help you.
wget https://dl.google.com/android/repository/commandlinetools-linux-6200805_latest.zipunzip commandlinetools-linux-6200805_latest.zipecho ANDROID_HOME=/home/siguser/installer/android/android-sdk-linuxsdkmanager — sdk_root=${ANDROID_HOME} “platform-tools” “platforms;android-29” >/dev/nullsdkmanager — sdk_root=${ANDROID_HOME} — list