Search code examples
cordovaionic-framework

How to force refresh the cached source files upon Ionic build/run?


I have this random issue with ionic build or ionic run.

I've noticed that during compilation it uses the cache of my source code, therefore when making new changes it doesn't reflect upon re-compiling the app.

So my question is, how can you clear the cache for the build files? I've tried doing ionic state reset but still it doesn't work nor doing uninstall then re-install the app from my Android.

Thanks


Solution

  • What I did to solve my problem was to do re-initialize the Android platform.

    ionic cordova platform remove android then ionic cordova platform add android

    goto task manager and kill java se process