Update build script for Gradle

Change-Id: I7010fcfe5247f55907def3dc0fd1e0fe4382fea2
Need JAVA_HOME for Gradle

Change-Id: Id878d7f222b61a3c7f38690541356287ca374c8d
Expand wildcards when copying apk

Change-Id: I90ebb616cf6b798e2034a60c45835ed75ccbfa23