After uniapp is packaged, it prompts that the version does not match, which may cause application exceptions

This application is compiled with HBuilderX 3.3.13 or the corresponding cli version, and the SDK version of the mobile phone is 3.6.18. The version without leather license may cause abnormal application.

problem causes

1. "Mobile SDK version":

It refers to the version number of 5+Runtime.

  • Cloud packaging is determined when submitting cloud packaging, that is to say, after the apk/ipa is generated, the APP operating environment will not change.
  • When packaging offline, it is the version of the sdk you downloaded.

2. "HBuilderX version"

  • If the project was created by HBuilderX, it is the version number of HBuilderX, updating HBuilderX will change
  • If the project is created by cli, that is, the root directory is package.json, then the version number of the compilation environment is generated when the cli is created, or generated by the last execution of npm update.

Regardless of how HBuilderX is upgraded, the compiler of the cli project will not be upgraded following the upgrade of HBuilderX, and needs to be manually upgraded.

Solution

HBuilderX1.9.0 and above have added the following configurations to avoid pop-up prompt boxes. You can configure to ignore this reminder in the source view of the manifest.json file:

"compatible":{ 
  //true means to ignore the version check prompt box, HBuilderX1.9.0 and above support   
  "ignoreVersion":true 
},

You can also add to avoid those specific version numbers

"compatible":{ 
  "runtimeVersion":"According to the actual

Guess you like

Origin blog.csdn.net/u013040757/article/details/129258872