Cloud package build FAILED - Error: Config.getFileResources is not a function

As the title suggests when i create a new build running in my CLI (3.3.0):
npm version (3.10.10)
node version (6.10.2)
latest cordova v

ionic package build android

The snapshot is uploaded, build finished, build submitted etc.

However on the cloud the build has FAILED:

This is the OUTPUT:

Any idea what is causing this error?:

Error: cordovaProject.projectConfig.getFileResources is not a function

If required i would gladly provide more info :slight_smile:

I fixed the problem by using this post:

the right combination is cordova@6 and android@6.1.2.

To be sure to have 6 version of cordova-cli run:

npm uninstall -g cordova

npm install -g cordova@6
To be sure to have 6.1.2 of android platform run:

ionic cordova platform rm android

ionic cordova platform add android@6.1.2
After this ionic package works for me.

Worth checking into, as more people will probably face the same issue.

After doing some more testing i think one of the causes could’ve been a corrupted icon generated from an illustrator file.

1 Like