Search code examples
visual-studiocordovacordova-plugins

Cordova in Visual Studio dont update Java code when Debug


I have a weird issure in Visual Studio 2015 and Apache Cordova 5.4, when I update the javascript code, all works well, but when I update the plugin code writen in Java, the Debug or Release methods, in the emulator and in the device dont update the plugin code correctly, like have a "cache".

I put in the plugin code bad code or change class names, and when I press Debug in device the code continue working like the Java code of the cordova plugins is not recompiled again.

I dont know if I misss something, I try to use Debug/Release, press Rebuild (Solution and other) Clean solution, etc, but the code is the code when I install the plugin not with my modifications after install plugin by the VS IDE.

Im looking in google for similar issures and found nothing.


Solution

  • You need to modify the source files in projectRoot\platforms\android\src\... instead of just in projectRoot\plugins\....
    A plugin JS files can be edited in the projectRoot\platforms\android\platform_www\plugins\... directory.