Updated Android build script configuration for new Gradle version.
Added build script task and template Java files to auto-generate classes from XML at build time.