I have this random issue with ionic build or ionic run.
ionic build
ionic run
I\'ve noticed that during compilation it uses the cache of my source code, therefor
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
ionic cordova platform remove android
ionic cordova platform add android
goto task manager and kill java se process