Android SDK does require JAVA_HOME if using Android Studio. For command-line builds:
Save yourself the configuration headache! 🧠⚡️ download java for android