Plugins are not always added after cordova add platform android and iOs

batanasov picture batanasov · Feb 20, 2015 · Viewed 15.8k times · Source

I need to run ionic platform add android/iOs few times to get the desired result. Sometimes plugins are added after first run, but usually I have to wipe out the plugins and platform directories and re-run adding the platform cycle few times until all plugins are added to android folder.

Did anyone else experienced same problem and if yes - what is the resolution? if any ...

thanks in advance

Answer

jaker picture jaker · Jun 30, 2015

I've experienced some similar problems myself. Try reseting your ionic project:

ionic state reset

This removes the platforms/ and plugins/ folder and restores them from the information stored in your package.json. There's a few other useful commands documented on the ionic-cli project.