Goto https://developer.android.com/studio#downloads, select command-line tools
Note the number(ANDROID_SDK_TOOLS
) will change if a new latest published.
and the output is located at app/build/outputs/apk/debug/{your_app_name}_0.0.1_debug.apk
Choose wanted SDK, you can select the same API value as your phone system https://source.android.com/setup/start/build-numbers?hl=en
For example, I have Android-10
on my phone, so I choose (API level 29)
SDK, the subversion are shown in sdkmanager --list
Note, emulator is ran on qemu, so it's not a recommand(?) to start the emulator in docker/podman.
I test on WSL, it works, but slower than Android studio, and always crash(Segmentation fault).