The Cordova environment cannot refresh the problem in time when the apk content is packaged through AndroidStudio.

the Vue project npm run build to the www directory of the cordova project. After creating the Android environment, the whole process of packaging apk through AndroidStudio is extremely smooth. All models are installed successfully and run smoothly. But the content of my Vue project has changed. After going through the process again, the apk typed by AS is still the previous content. I put the content of the www file on Tomcat to run the content is the latest, but APK did not refresh the latest content, which god can give the answer, thank you, online and so on.

Jul.08,2021

you will not pull new content from the www directory if you package it with Android Studio. You need to use cordova's cli, that is, cordova build android. If you need the release version, add-- release.

Menu