插件不总是添加在cordova添加平台android和iOs [英] Plugins are not always added after cordova add platform android and iOs
问题描述
我需要运行离子平台添加android / iOs
几次,以获得所需的结果。
有时在第一次运行后添加插件,但通常我必须清除插件和平台目录,并重新运行添加平台周期几次,直到所有插件添加到Android文件夹。
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 ...
推荐答案
我自己经历过一些类似的问题。尝试重新启动您的离子项目:
I've experienced some similar problems myself. Try reseting your ionic project:
ionic state reset
这会删除 platforms /
和 plugins /
从存储在 package.json
中的信息。 ionic-cli项目中记录了一些其他有用的命令。
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.
这篇关于插件不总是添加在cordova添加平台android和iOs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!