Ionic app android build failure and environment version mismatch

Hi all, We have an Ionic web and mobile application we were using node 6 earlier and then we updated to node 10.16.0 and updated ionic, cordova environment also, now the problem is my project is not building neither dev nor prod for android platform. I think there is some version mis-match which I am unable to figure out. I’ve attached my ionic info screenshot. can someone help me how do I fix this? I also tried to remove and add android platform , node-modules, package-lock.json nothing is wokring… Or should I leave configuring environment to build ionic 3 app and migrate my existing ionic 3 app to ionic 4?

Ionic info:


Ionic CLI : 5.1.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.3.0
@ionic/app-scripts : 3.2.4


Cordova CLI : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 6.4.0
Cordova Plugins : no whitelisted plugins (23 plugins total)


cordova-res : not installed
native-run : not installed


NodeJS : v10.16.0 (/usr/local/bin/node)
npm : 6.9.0
OS : macOS High Sierra
Xcode : Xcode 9.2 Build version 9C40b

Plugin list: 2.1.0 “CardIO”
com.paypal.cordova.mobilesdk 3.5.0 “PayPalMobile”
cordova-android-support-gradle-release 1.4.7 “cordova-android-support-gradle-release”
cordova-open-native-settings 1.5.2 “Native settings”
cordova-plugin-android-permissions 1.0.0 “Permissions”
cordova-plugin-camera 2.4.1 “Camera”
cordova-plugin-compat 1.2.0 “Compat”
cordova-plugin-console 1.1.0 “Console”
cordova-plugin-device 2.0.2 “Device”
cordova-plugin-file 4.3.3 “File”
cordova-plugin-file-opener2 2.2.0 “File Opener2”
cordova-plugin-filepath 1.5.5 “cordova-plugin-filepath”
cordova-plugin-geolocation 4.0.1 “Geolocation”
cordova-plugin-globalization 1.0.8 “Globalization”
cordova-plugin-google-analytics 1.8.6 “Google Universal Analytics Plugin”
cordova-plugin-googleplus 5.2.1 “Google SignIn”
cordova-plugin-image-picker 1.1.1 “ImagePicker”
cordova-plugin-inappbrowser 2.0.1 “InAppBrowser”
cordova-plugin-nativegeocoder 2.0.3 “NativeGeocoder”
cordova-plugin-network-information 1.3.3 “Network Information”
cordova-plugin-networkinterface 1.2.0 “NetworkInterface”
cordova-plugin-splashscreen 5.0.2 “Splashscreen”
cordova-plugin-statusbar 2.4.2 “StatusBar”
cordova-plugin-whitelist 1.3.3 “Whitelist”
cordova-plugin-x-socialsharing 5.4.6 “SocialSharing”
cordova.plugins.diagnostic 4.0.8 “Diagnostic”
es6-promise-plugin 4.2.2 “Promise”
ionic-plugin-keyboard 2.2.1 “Keyboard”
mx.ferreyra.callnumber 0.0.2 “Cordova Call Number Plugin”


try to update npm:

npm i npm

install node_modules packages for your project (delete the folder node_modules first):

npm i

You might need to remove android platform and add it again:

ionic cordova platform rm android

then add:

ionic cordova platform add android

good luck

Thanks for your response, I’ve already tried it but din’t work… Can you please provide any other solution?

capture the error message and post it here