javascript - Cordova and Ionic: plugin not updating - Stack Overflow

I have a question concerning plugins. I am using the ionic framework () and Cordova for my hybrid app.

I have a question concerning plugins. I am using the ionic framework (/) and Cordova for my hybrid app. I am using a toast (text popup) plugin to provide some feedback. Everything works but I decided that I needed some customization so I edited some of the .java files. It seems that my edit has no impact, it's really strange, the plugin also seems to keep working even when I ment out the execute function.

I am using the following ionic mand to test the app on my smartphone: "ionic run android"

Any idea why the plugin is not updating? Thanks in advance!

I have a question concerning plugins. I am using the ionic framework (http://ionicframework./) and Cordova for my hybrid app. I am using a toast (text popup) plugin to provide some feedback. Everything works but I decided that I needed some customization so I edited some of the .java files. It seems that my edit has no impact, it's really strange, the plugin also seems to keep working even when I ment out the execute function.

I am using the following ionic mand to test the app on my smartphone: "ionic run android"

Any idea why the plugin is not updating? Thanks in advance!

Share Improve this question asked May 18, 2014 at 14:27 JdruweJdruwe 3,5306 gold badges40 silver badges60 bronze badges 5
  • where did you change plugin code? in your project or in location from where you did install the plugin? – Maxim Shoustin Commented May 18, 2014 at 14:58
  • I installed the plugin using this mand: phonegap local plugin add github./EddyVerbruggen/Toast-PhoneGap-Plugin.git. And than I edited its .java files – Jdruwe Commented May 18, 2014 at 15:11
  • I didn't use ionic run android mand but run from Eclipse. I'm not sure that this mand piles your project. It only takes project apk and runs on connected device. Compile project first. – Maxim Shoustin Commented May 18, 2014 at 15:15
  • I am using webstorm for my whole project, any idea how I can do that? – Jdruwe Commented May 18, 2014 at 16:34
  • Can you see the plugin changes under these folder platforms/android/src/<package name or directory>/<filename.java>? – Aditya Singh Commented Apr 17, 2016 at 7:49
Add a ment  | 

2 Answers 2

Reset to default 3

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>

When I remove my android platform and install it back it works (it seems the only place where it installs plugins)

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745152240a4613919.html

相关推荐

  • javascript - Cordova and Ionic: plugin not updating - Stack Overflow

    I have a question concerning plugins. I am using the ionic framework () and Cordova for my hybrid app.

    3小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信