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

Renesansz picture Renesansz · Aug 25, 2015 · Viewed 88.1k times · Source

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

Answer

Renesansz picture Renesansz · Aug 25, 2015

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