Reputation: 68
I met a problem for 3 days with my application ionic 3. In fact, after builder in prod and release mode, it is always the old version that is always taken into account. the changes do not reflect. So when mode debug, the changes are well taken. I tried several solutions may nothing.
Ionic v3
Also i have tried many solutions but no changes
i have delete the www folder and run ionic serve --lab
after i run build commande still no change
I need help.
Thanks you in advance
Ionic:
Ionic CLI : 5.2.3 Ionic Framework : ionic-angular 3.9.2 @ionic/app-scripts : 3.1.8
Cordova:
Cordova CLI : 8.1.2 ([email protected]) Cordova Platforms : android 7.1.4, ios 4.5.5 Cordova Plugins : cordova-plugin-ionic 3.1.2, cordova-plugin-ionic-webview 1.2.1, (and 18 other plugins)
Utility:
cordova-res : 0.6.0 native-run : 0.2.8
System:
Android SDK Tools : 26.1.1 (C:\Sdk) NodeJS : v10.15.1 (C:\Program Files\nodejs\node.exe) npm : 6.4.1 OS : Windows 10
Build pass successfully
Upvotes: 0
Views: 2958
Reputation: 2519
remove android platform using
ionic cordova platform rm android
remove manually node-modules
and
package-lock.json
(imp*)
Unistall old Application
npm cache clean --force
finally run npm install
ionic cordova platform add android
ionic cordova build android
Upvotes: 2
Reputation: 68
Finally I found the solution. The problem was related to the ionic plugin (appflow).
I had two choices 1. Generate the apk from the appflow platform with the configured branch.
I took the choice 1.
Documentation of appflow https://ionicframework.com/appflow
Upvotes: 0
Reputation: 1122
As @MD Khali said to remove the platform and add platform again, but if it happens after that you just need to click save 3-4 time. Because I have the same problem in my ionic 3 projects.
Upvotes: 1