HBuilderX1.7.0及以上版本uni-app添加了運行環境版本和編譯環境版本的校驗機制,當兩個版本不一致時會彈出以下提示:

解決辦法:
可以在manifest.json檔案的原始碼視圖中配置忽略這個提醒,方式如下:
HBuilderX1.9.0及以上版本新增以下配置避免彈出提示框
//...
"app-plus": {
"compatible": {
"ignoreVersion": true //true表示忽略版本檢查提示框,HBuilderX1.9.0及以上版本支持
},
//....
},
//...
以下方法可針對指定版本避免彈出提示框
//...
"app-plus": {
"compatible": {
"runtimeVersion": "1.7.0", //根據實際情況填寫
"compilerVersion": "1.7.1" //根據實際情況填寫
},
//....
},
//...
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/174890.html
標籤:其他
