Wanted to add some info that I stumbled through trying to compile the Android version this week:
You can't use the current Java JDK -- get Java JDK 8u202 (else it will fail with an error about immutable environment variables or some such). This might be documented somewhere, but I missed it...