简体   繁体   English

Cordova和Ionic:插件未更新

[英]Cordova and Ionic: plugin not updating

I have a question concerning plugins. 我有一个关于插件的问题。 I am using the ionic framework ( http://ionicframework.com/ ) and Cordova for my hybrid app. 我在混合应用程序中使用ionic框架( http://ionicframework.com/ )和Cordova。 I am using a toast (text popup) plugin to provide some feedback. 我正在使用Toast(文本弹出)插件提供一些反馈。 Everything works but I decided that I needed some customization so I edited some of the .java files. 一切正常,但我决定需要进行一些自定义,因此我编辑了一些.java文件。 It seems that my edit has no impact, it's really strange, the plugin also seems to keep working even when I comment out the execute function. 看来我的编辑没有任何影响,这确实很奇怪,即使我注释掉execute函数,该插件也似乎可以正常工作。

I am using the following ionic command to test the app on my smartphone: "ionic run android" 我正在使用以下ionic命令在智能手机上测试该应用:“ ionic run android”

Any idea why the plugin is not updating? 知道为什么插件未更新吗? Thanks in advance! 提前致谢!

I had issues with plugins as well and decided to remove/add them back in, then update platform and it worked. 我在插件方面也遇到了问题,因此决定将其删除/添加回去,然后更新平台,该插件可以正常工作。

cordova plugin rm org.apache.cordova.<plugin>
cordova plugin add org.apache.cordova.<plugin>
cordova platform update <platform>

当我删除我的android平台并将其重新安装时,它可以正常工作(这似乎是唯一安装插件的地方)

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

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