Meteor add-platform android not working


#1

For some reason, when trying to add-platform android (same error for add-platform ios), or build the project using meteor run android device, the error below is produced, so it is impossible to build.

Have tried remove-platform android followed by add-platform android as well as meteor reset, to no avail.
Using Meteor 1.6.
Have already:
cordova platform update android
sudo npm update -g cordova
cordova version is 8.0.0
I have another project on the same machine, which seems to have the same settings, that builds properly.
What to do?

Thanks

While adding platform Android to Cordova project:
TypeError: cordovaProject.projectConfig.getFileResources is not a function
at updateFileResources (/Users/cdc/code/OCW/WatchfulAppAdmin/.meteor/local/cordova-build/platforms/android/cordova/lib/prepare.js:408:46)
at /Users/cdc/code/OCW/WatchfulAppAdmin/.meteor/local/cordova-build/platforms/android/cordova/lib/prepare.js:51:9
at _fulfilled (/Users/cdc/code/OCW/WatchfulAppAdmin/.meteor/local/cordova-build/platforms/android/cordova/node_modules/q/q.js:854:54)
at self.promiseDispatch.done (/Users/cdc/code/OCW/WatchfulAppAdmin/.meteor/local/cordova-build/platforms/android/cordova/node_modules/q/q.js:883:30)
at Promise.promise.promiseDispatch (/Users/cdc/code/OCW/WatchfulAppAdmin/.meteor/local/cordova-build/platforms/android/cordova/node_modules/q/q.js:816:13)
at /Users/cdc/code/OCW/WatchfulAppAdmin/.meteor/local/cordova-build/platforms/android/cordova/node_modules/q/q.js:624:44
at runSingle (/Users/cdc/code/OCW/WatchfulAppAdmin/.meteor/local/cordova-build/platforms/android/cordova/node_modules/q/q.js:137:13)
at flush (/Users/cdc/code/OCW/WatchfulAppAdmin/.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:
at Function.Promise.await
(/Users/cdc/.meteor/packages/meteor-tool/.1.6.0_1.5vn9fx.pikri++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:56:12)
at Promise.asyncApply (/tools/cordova/project.js:384:7)
at /Users/cdc/.meteor/packages/meteor-tool/.1.6.0_1.5vn9fx.pikri++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/meteor-promise/fiber_pool.js:43:40
=> awaited here:
at Function.Promise.await
(/Users/cdc/.meteor/packages/meteor-tool/.1.6.0_1.5vn9fx.pikri++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:56:12)
at CordovaProject.runCommands (/tools/cordova/project.js:725:14)
at CordovaProject.addPlatform (/tools/cordova/project.js:380:10)
at CordovaProject.ensurePlatformsAreSynchronized (/tools/cordova/project.js:411:12)
at main.captureAndExit (/tools/cli/commands-cordova.js:54:20)
at /tools/utils/buildmessage.js:271:13
at exports.EnvironmentVariable.withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:264:29
at exports.EnvironmentVariable.withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:262:18
at exports.EnvironmentVariable.withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:253:23
at exports.EnvironmentVariable.withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.capture (/tools/utils/buildmessage.js:252:19)
at Object.main.captureAndExit (/tools/cli/main.js:272:29)
at doAddPlatform (/tools/cli/commands-cordova.js:36:8)
at Command.func (/tools/cli/commands-cordova.js:125:3)
at /tools/cli/main.js:1522:15