I'd just like to apt install android-sdk and pass some .java file to a compiler, just like with any other language... In the past you could still just grab the sdk without an entire operating system's worth of GUIs, but they've removed that download option now. I'm down to using my own local copy whenever I use a different computer, together with a few shell scripts that I wrote to do the compiling for me, but that won't last forever with new sdk versions.