Ramon Emiliani
Ramon Emiliani

Reputation: 51

apk not updating changes when building with Ionic

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

Answers (4)

Faouzi
Faouzi

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

FireVortex
FireVortex

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

Fabrice Kabongo
Fabrice Kabongo

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

Víctor
Víctor

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

Related Questions