Ionic package fails with message

I am able to build this app and run it directly on an android device. the ionic upload/cloud update cycle works fine.

But when I try the ionic package build android however I get this error. My development environment is ubuntu 14.04 Trusty, node v6.10.3, npm v3.10.10, ionic v3.0.0, java v1.8.0_131, gradle v2.3, cordova v7.0.0

Adding android project…
Creating Cordova project for the Android platform:
Path: platforms/android
Package: io.ionic.starter
Name: MyApp
Activity: MainActivity
Android target: android-25
Subproject Path: CordovaLib
Android project created with cordova-android@6.2.3
Error: cordovaProject.projectConfig.getFileResources is not a function

Here someone had the exact same error:

Thank you. removing the android platform and adding the version 6.1.2 worked. Where can we find what version we need for future reference?

hello, globally only a few cordova plugins are supported to build both for android and ios. have a look a the list there: (native docs)

As for versions, ionic 3 generally requires lastest of them. The issue from what I read often comes if you try to direclty code inside cordova plugins.

Actually a good question - probably ask Ionic? I wasn’t even aware that specific versions are required…