you have to perform all these step in your ionic project floder
E:\ionic3\MMPApp>cd mmpapp
E:\ionic3\MMPApp\mmpapp>ionic cordova platform remove android
cordova platform remove android --save
Removing platform android from config.xml file…
Removing android from cordova.platforms array in package.json
E:\ionic3\MMPApp\mmpapp>ionic cordova platform add android
cordova platform add android --save
Using cordova-fetch for cordova-android@~6.3.0
Adding android project…
Creating Cordova project for the Android platform:
Path: platforms\android
Package: com.MMPApp
Name: MMPApp
Activity: MainActivity
Android target: android-26
Subproject Path: CordovaLib
Android project created with cordova-android@6.3.0
Installing “com.synconset.imagepicker” for android
Subproject Path: CordovaLib
Installing “cordova-plugin-camera” for android
Subproject Path: CordovaLib
Installing “cordova-plugin-console” for android
Installing “cordova-plugin-device” for android
Installing “cordova-plugin-ionic-webview” for android
Installing “cordova-plugin-network-information” for android
Installing “cordova-plugin-splashscreen” for android
Installing “cordova-plugin-whitelist” for android
This plugin is only applicable for versions of cordova-android
eater than 4.0. If you have a previous platform version, you do not need thi
plugin since the whitelist will be built in.
Installing “cordova-plugin-x-toast” for android
Installing “cordova-sqlite-storage” for android
installing external dependencies via npm
npm install of external dependencies ok
Installing “cordova.plugins.diagnostic” for android
Subproject Path: CordovaLib
Installing “ionic-plugin-keyboard” for android
–save flag or autosave detected
Saving android@~6.3.0 into config.xml file …
ionic cordova resources android --force
√ Collecting resource configuration and source images - done!
√ Filtering out image resources that do not need regeneration - done!
√ Uploading source images to prepare for transformations - done!
√ Generating platform resources: 18 / 18 complete - done!
√ Modifying config.xml to add new image resources - done!
E:\ionic3\MMPApp\mmpapp>