[SOLVED] Since 1.6-xx can no longer build for Cordova


#1

My build scripts for building for Android were working fine for Meteor 1.5.1.

Upgrading to 1.6-beta and then to 1.6-rc.0 leaves me without an Android build any more :

Subproject Path: CordovaLibt                 \
Subproject Path: CordovaLibns                [===========                ] 40% 2.8s
ANDROID_HOME=/home/you/.android/android-sdk-linux                                  
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
=> Errors executing Cordova commands:         
                                              
   While building Cordova app for platform Android:
   code: undefined                            
   at Object.module.exports.check_gradle (/home/you/projects/IriBluBuilt/.meteor/local/cordova-build/platforms/android/cordova/lib/check_reqs.js:146:18)
   at GradleBuilder.prepEnv (/home/you/projects/IriBluBuilt/.meteor/local/cordova-build/platforms/android/cordova/lib/builders/GradleBuilder.js:176:23)
   at Api.module.exports.run (/home/you/projects/IriBluBuilt/.meteor/local/cordova-build/platforms/android/cordova/lib/build.js:152:20)
   at /home/you/projects/IriBluBuilt/.meteor/local/cordova-build/platforms/android/cordova/Api.js:348:43
   at _fulfilled (/home/you/projects/IriBluBuilt/.meteor/local/cordova-build/platforms/android/cordova/node_modules/q/q.js:854:54)
   at self.promiseDispatch.done (/home/you/projects/IriBluBuilt/.meteor/local/cordova-build/platforms/android/cordova/node_modules/q/q.js:883:30)
   at Promise.promise.promiseDispatch (/home/you/projects/IriBluBuilt/.meteor/local/cordova-build/platforms/android/cordova/node_modules/q/q.js:816:13)
   at /home/you/projects/IriBluBuilt/.meteor/local/cordova-build/platforms/android/cordova/node_modules/q/q.js:624:44
   at runSingle (/home/you/projects/IriBluBuilt/.meteor/local/cordova-build/platforms/android/cordova/node_modules/q/q.js:137:13)
   at flush (/home/you/projects/IriBluBuilt/.meteor/local/cordova-build/platforms/android/cordova/node_modules/q/q.js:125:13)
   at _combinedTickCallback (internal/process/next_tick.js:131:7)
   at process._tickCallback (internal/process/next_tick.js:180:9)
   => awaited here:
//   ... several dozen more lines ...

Am I the only one seeing this?
Any hints?


#2

Ok! Had a brainstorm and ran …

meteor remove-platform android
meteor add-platform android

I was politely informed that I needed to install gradle.
I have not yet looked into why I was able to build before, apparently without gradle.