Building Android fails with build exception

Do you have any unusual environment variables set? You can list them all with printenv. I’m particularly interested in whether this thread is relevant, because it presents with what looks like the same NPE.