When running uni-app, an error is reported "This application is compiled using HBuilderX xxx or the corresponding cli version, while the mobile SDK version is xxx. Mismatched versions may cause application exceptions"

When running uni-app, an error is reported "This application is compiled using HBuilderX xxx or the corresponding cli version, while the mobile SDK version is xxx. Mismatched versions may cause application exceptions"

Cause

The mobile SDK version is inconsistent with the HBuilderX version.

Solution

method one

Find the manifest.json configuration file in the root directory of the project, select the source code view, find the app-plus property, and add a prompt box to ignore the version check. The specific configuration information is as follows:

"app-plus" : {
    
    
	"compatible": {
    
      
	    "ignoreVersion": true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持  
	}
}

Method Two

Find the manifest.json configuration file in the project root directory, select the source code view, find the app-plus property, and add version information. The specific configuration information is as follows:

"app-plus" : {
    
    
     "compatible" : {
    
    
         "runtimeVersion" : "3.7.9",  // 运行版本
         "compilerVersion" : "3.7.11" // 编译版本
      },
}

reference link

link 2
link 1

Guess you like

Origin blog.csdn.net/weixin_39893889/article/details/132215677