简体   繁体   English

带有cordova的Phonegap应用,无法安装插件

[英]Phonegap App with cordova, can't install plugin

So i have this Phonegap app and i need to install the cordova dialogs plugin and, since i'm very noobish in this kinds of things, i just can't get it done. 所以我有这个Phonegap应用程序,我需要安装cordova对话框插件,并且由于我在这种事情上非常笨拙,所以我无法完成它。

I tried installing with the "cordova plugin add cordova-plugin-dialogs" command but i would get a error saying the browser platform was not installed. 我尝试使用“ cordova plugin add cordova-plugin-dialogs”命令进行安装,但会收到一条错误消息,指出未安装浏览器平台。 After a few tries and google searches i managed to "install" the plugin but it still not working. 经过几次尝试和谷歌搜索,我设法“安装”了插件,但仍然无法正常工作。

I can see the plugin on my plugins folder, but on the Phonegap website it says i don't have the dialogs plugin. 我可以在我的plugins文件夹中看到该插件,但是在Phonegap网站上却显示我没有对话框插件。

I noticed that when i use "cordova plugin" it says i have the dialogs plugin but with "-dev". 我注意到当我使用“ cordova插件”时,它说我有对话框插件,但带有“ -dev”。 What does this mean? 这是什么意思?

I have some prints for you guys to understand better: 我有一些印刷品供大家更好地理解:

https://gyazo.com/e1adb1b2139d9565200b2ece86d63984 https://gyazo.com/e1adb1b2139d9565200b2ece86d63984

https://gyazo.com/85f4e50e962e9a0b0ba3ae978154b882 https://gyazo.com/85f4e50e962e9a0b0ba3ae978154b882

https://gyazo.com/e318c66edadb3fb11b69956168f275e1 https://gyazo.com/e318c66edadb3fb11b69956168f275e1

Can you help me please? 你能帮我吗? I'm really stressing out with this and i have no idea how to fix it 我真的很强调这个,我不知道如何解决

When you work with the build service of phonegap you don't need to use the cordova/phonegap command line. 当您使用phonegap的构建服务时,您不需要使用cordova / phonegap命令行。

You just have to manage the config.xml file. 您只需要管理config.xml文件。

For add you'r plugin just add this to you'r config.xml plugin part file : 为了添加您的插件,只需将其添加到您的config.xml插件部件文件中:

<plugin name="cordova-plugin-dialogs"/>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM