Changes are not getting reflected in Ionic 3 app e

2020-05-04 16:36发布

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

  1. ionic cordova platforms rm android
  2. ionic cordova platforms add android
  3. ionic cordova build android --prod --release --aot ------------no change------------- I have downgrade the app-scripts version always same

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 (cordova-lib@8.1.1) 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

3条回答
对你真心纯属浪费
2楼-- · 2020-05-04 17:02

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.

  1. Remove the ionic plugin applflow

I took the choice 1.

Documentation of appflow https://ionicframework.com/appflow

查看更多
别忘想泡老子
3楼-- · 2020-05-04 17:05

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.

查看更多
倾城 Initia
4楼-- · 2020-05-04 17:12
  1. remove android platform using

  2. ionic cordova platform rm android remove manually node-modules and package-lock.json (imp*)

  3. Unistall old Application

  4. npm cache clean --force

  5. finally run npm install

  6. ionic cordova platform add android

  7. ionic cordova build android

查看更多
登录 后发表回答