I am running to a problem, when I have to edit .java
file in capacitor-cordova-android-plugin which it works fine when I am running project from Android Studio, but then each time I run capacitor run
it updates the whole thing and overrides my changes. How to prevent that ?
Why are you updating plugin files in first place?
Cordova plugin files get copied to capacitor-cordova-android-plugin
on every update/sync, so if you edit them, they are a copy and get overwritten from the original.
If you need to update a plugin, you should clone it, make the changes locally and install from the local folder.
1 Like