Cordova – How to force cordova to recompile added plugins


It seems cordova caches compiled plugins, when i change the source code of plugins (.java files on windows), the only way to force cordova to recompile the plugin is to remove and then add that plugin again, which is a pain .
Is there any way to clean cordova cache or force it to recompile added plugins ?

Best Solution

Afaik there's no way to recompile the original files.

The quickest and most dirty way (still the best for quick checks) is to change the files under

e.g. (Android)


that way it's automatically recompiled.

Obviously this file can be easily deleted or overwritten so it's just a way to quickly test SMALL changes.

Related Question