收藏
回答

我的微信小程序在极少数手机上出现一直闪退的情况,内附详细信息,请看下是什么原因?

  1. 手机牌子是“1+”手机,闪退的情况出现在我升级版本后,升级版本前,该手机是没有闪退问题的。
  2. 升级版本的情况:

a>,升级版本的原因是我的小程序在电脑上,和部分手机上打不开;

b>,升级的内容是修改了project.config.json,修改后在小程序电脑上可以打开,在之前报障的手机上也是可以打开的;

修改前的project.config.json

{

"miniprogramRoot": "miniprogram/",

"cloudfunctionRoot": "cloudfunctions/",

"setting": {

"urlCheck": true,

"es6": false,

"postcss": true,

"minified": true,

"newFeature": true,

"nodeModules": false,

"autoAudits": false,

"checkInvalidKey": true,

"checkSiteMap": false,

"uploadWithSourceMap": true,

"babelSetting": {

"ignore": [],

"disablePlugins": [],

"outputPath": ""

}

},

"appid": "wxxxxxxxxxxxxxxxxxxxxx",

"projectname": "weixin",

"libVersion": "2.8.3",

"simulatorType": "wechat",

"simulatorPluginLibVersion": {},

"condition": {

"search": {

"current": -1,

"list": []

},

"conversation": {

"current": -1,

"list": []

},

"plugin": {

"current": -1,

"list": []

},

"game": {

"list": []

},

"miniprogram": {

"current": 0,

"list": [

{

"id": -1,

"name": "db guide",

"pathName": "pages/databaseGuide/databaseGuide"

}

]

}

}

}

修改后的project.config.json

{

"miniprogramRoot": "miniprogram/",

"cloudfunctionRoot": "cloudfunctions/",

"setting": {

"urlCheck": true,

"es6": true,

"postcss": true,

"minified": true,

"newFeature": true,

"enhance": true

},

"appid": "wxxxxxxxxxxxxxxxxxxxxx",

"projectname": "weixin",

"libVersion": "2.11.0",

"simulatorType": "wechat",

"simulatorPluginLibVersion": {},

"condition": {

"search": {

"current": -1,

"list": []

},

"conversation": {

"current": -1,

"list": []

},

"plugin": {

"current": -1,

"list": []

},

"game": {

"list": []

},

"miniprogram": {

"current": 0,

"list": [

{

"id": -1,

"name": "db guide",

"pathName": "pages/databaseGuide/databaseGuide"

}

]

}

}

}

回答关注问题邀请回答
收藏
登录 后发表内容
问题标签