在Phonegap / Cordova 3.0+中,有什么办法刷新插件后,你进行更改? [英] In Phonegap/Cordova 3.0+, is there any way to refresh plugins after you make changes?

查看:139
本文介绍了在Phonegap / Cordova 3.0+中,有什么办法刷新插件后,你进行更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对不起,如果这是一个简单的问题,我希望它是。 PhoneGap / Cordova文档很糟糕。

Sorry guys if this is a simple question, which I'm hoping it is. The PhoneGap/Cordova documentation is pretty bad.

目录结构:

/platforms/
   /ios/
   /android/
/plugins/
/www/

有没有在父插件目录中进行更改,然后将这些更改应用到不同的平台?我在做:

Is there anyway to make changes in the parent plugin directory and then have it apply those changes to the different platforms? I'm doing:

cordova prepare

这会更新父项 www 目录中的所有HTML,但我的插件似乎没有更新。

This updates all the HTML from the parent www directory, but my plugins don't seem to get updated.

希望有人能和我在一起,给我一个doh!

Hopefully someone can chime in with and give me a "doh!" moment.

推荐答案

我遇到了同样的问题。我可以一直让我的插件更新的唯一方法是完全卸载插件并从头重新安装。

I ran into the same issue. The only way I could consistently get my plugin to update would be to uninstall the plugin completely and reinstall it from scratch.

cordova plugin rm org.apache.cordova.plugin.example
cordova plugin add ../example-app-plugin/

在这个例子中,我从本地目录安装它。

In this example I am installing it from a local directory.

这篇关于在Phonegap / Cordova 3.0+中,有什么办法刷新插件后,你进行更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆