uniapp [Successful example] Solve the problem of inconsistency of the page pop-up compiler version after packaging the app

Screenshot of the problem
insert image description here

1. Reason

As far as my current project experience is concerned, it is because the official website of the Hbuilderx version has the latest version, but the version installed on the computer is not the latest version, and the version running on the custom base is not the latest version. This happens.

2. Solutions

2.1. hbuilderx opens its own project folder

2.2 Open the terminal, pay attention to the path of the current project

2.3 inputnpx @dcloudio/uvm 3.2.12.20211029

The following long string of numbers [3.2.12.20211029] is the version number that needs to be updated, which is the version number of the mobile phone in the screenshot of the above question. You can get the version number in the menu bar at the top of hbuilderx – Help – click Check Update – View Log
insert image description here


insert image description here

2.4 Need to re-create the custom base, run it again, and pack it again

2.5 Configuration in manifest.json

code:"compatible" : { "ignoreVersion" : true },
insert image description here

2.6 Run again to the real machine debugging or emulator, if there is no version prompt, it will be solved, and you can repackage~~~~

But I found that only setting the code in step 5 is also achievable, without so many steps. . .

Guess you like

Origin blog.csdn.net/DarlingYL/article/details/121508100