I often forget how to do this. So I’m posting it here so that I can come back when I need it (content poverty laughs from the corner).

Prerequisites:

  1. Android Studio (or just the SDK tools if you’re a nerd)
  2. Android Virtual Device (I don’t like Genymotion)
  3. Python
  4. Conda or any other environment manager (optional but recommended)

If the SDK binaries are not in your PATH environment variable, paste the following in your .bashrc or equivalent.