Ionic build on android not updating the app according to source change

I have an app. I do changes on this app. If I do ionic serve, I see the application tacking account of the changes I did. If I do :

ionic build android
ionic run android

I still have the old version of the application.

Why ?

Output of my ionic build android :

Updated the hooks directory to have execute permissions
running cordova build android
Running command: /home/guillaume/projects/HEC-DT/hooks/after_prepare/010_add_platform_class.js /home/guillaume/projects/HEC-DT
add to body class: platform-android
Running command: /home/guillaume/projects/HEC-DT/platforms/android/cordova/build 
ANDROID_HOME=/home/guillaume/android-sdk-linux
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
Running: /home/guillaume/projects/HEC-DT/platforms/android/gradlew cdvBuildDebug -b /home/guillaume/projects/HEC-DT/platforms/android/build.gradle -Dorg.gradle.daemon=true
:preBuild
:compileDebugNdk UP-TO-DATE
:preDebugBuild
:checkDebugManifest
:CordovaLib:compileLint
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles UP-TO-DATE
:CordovaLib:preBuild
:CordovaLib:preDebugBuild
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl UP-TO-DATE
:CordovaLib:compileDebugRenderscript UP-TO-DATE
:CordovaLib:generateDebugBuildConfig UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE
:CordovaLib:generateDebugResValues UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:CordovaLib:processDebugResources UP-TO-DATE
:CordovaLib:generateDebugSources UP-TO-DATE
:CordovaLib:compileDebugJava UP-TO-DATE
:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:packageDebugJar UP-TO-DATE
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:packageDebugJniLibs UP-TO-DATE
:CordovaLib:packageDebugLocalJar UP-TO-DATE
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:bundleDebug UP-TO-DATE
:prepareAndroidCordovaLibUnspecifiedDebugLibrary UP-TO-DATE
:prepareDebugDependencies
:compileDebugAidl UP-TO-DATE
:compileDebugRenderscript UP-TO-DATE
:generateDebugBuildConfig UP-TO-DATE
:generateDebugAssets UP-TO-DATE
:mergeDebugAssets UP-TO-DATE
:generateDebugResValues UP-TO-DATE
:generateDebugResources UP-TO-DATE
:mergeDebugResources UP-TO-DATE
:processDebugManifest UP-TO-DATE
:processDebugResources UP-TO-DATE
:generateDebugSources UP-TO-DATE
:compileDebugJava UP-TO-DATE
:preDexDebug UP-TO-DATE
:dexDebug
:processDebugJavaRes UP-TO-DATE
:validateDebugSigning
:packageDebug
:zipalignDebug
:assembleDebug
:cdvBuildDebug

BUILD SUCCESSFUL

Total time: 21.065 secs
Built the following apk(s):
    /home/guillaume/projects/HEC-DT/platforms/android/build/outputs/apk/android-debug.apk

Me too.Can you solve it?

did you solve this? I have stuck on this for a while

I have the same problem also… :frowning:

What I did to solve my problem was to do re-initialize Android platform.

ionic Cordova platform remove android then
ionic Cordova platform add android

I believe maybe this for security purpose, no one can decompile our .apk code.

Tried remove ios and then add ios, still not working. Somehow the package built is still in old version.