Linux notes
Published in

Linux notes

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

--

--

--

my notes on Linux usage and administration

Recommended from Medium

HMS Toolkits in the Field of Gaming

You Should Learn Functional Programming in 2017

Ahh the good ole days

Skaehub Developer Program: Python Self-Study Curriculum

3 Ways to Effectively Manage (false) Bug Reports

Adobe Magento Commerce Indexer MVIEW Architecture

Under Estimating The Minor

We built Wavechat to allow everyone to make easy micro-podcasts for Stories. How did we get here?

Magento 2 with Kubernetes on AWS Cloud

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Shi

Shi

I am a coder/engineer/application security specialist. I like to play around with language and tools; I have strong interest in efficiency improvement.

More from Medium

Chrome extension development with Clean Architecture (a PoC)

How to run android automation scripts with docker environment.

5 Best API Integration Tools for Developers in 2022 | Optymize

Understanding Gradle and Build Automation Tools