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. 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 comment out the execute function.

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

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

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

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>