Reputation: 51
I am trying to test an ionic app on the emulator and on an android phone but neither works. Even though I can install and execute the application it is always an Ionic Blank Starter. The changes made can be seen on the browser when using serve but the apk generated on build doesn´t change.
Upvotes: 4
Views: 3214
Reputation: 1019
Deleting the www folder and removing android platform and adding it again solved the problem for me :
ionic cordova platform rm android
ionic cordova platform add android
Upvotes: 0
Reputation: 343
Try to uninstall app then run "ionic cordova emulate android" again.
Do it with every change. This is the fastest way for me.
Upvotes: 0
Reputation: 668
I have the same problem quite often. My solution: delete the old APK before generating the new one.
I don't know why but it seems that there is a caching somewhere.
Upvotes: 1
Reputation: 3039
Ionic serve shows changes in the code dinamically, but you have to ionic build
and ionic run
to make the changes affect the apk
Upvotes: 0