[PATCH v3 1/2] configure: fail early on invalid Gradle/SDK and cache Android build tools