example/app/platforms/android/cordova/lib/build.js
function(opts) {
            var wrapper = path.join(ROOT, 'gradlew');
            var args = this.getArgs(opts.buildType == 'debug' ? 'debug' : 'release', opts);
            return Q().then(function() {
                console.log('Running: ' + wrapper + ' ' + args.join(' '));
                return spawn(wrapper, args);
            });
        }
function(opts) {
            var wrapper = path.join(ROOT, 'gradlew');
            var args = this.getArgs(opts.buildType == 'debug' ? 'debug' : 'release', opts);
            return Q().then(function() {
                console.log('Running: ' + wrapper + ' ' + args.join(' '));
                return spawn(wrapper, args);
            });
        }
/*
Builds the project with gradle.
Returns a promise.