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
I have deleted android-debug.apk from platforms/android/build/outputs/apk and then ionic cordova run android. It worked with no cache.
android-debug.apk
platforms/android/build/outputs/apk
ionic cordova run android