大神们 小程序开发工具报错 卡好多天了都 跪求答案 [ miniprogram/app.json 文件内容错误] 未找到?
{
"pages": [
"pages/index/index",
"pages/img/img",
"pages/mine/mine",
"pages/search/search",
"pages/demo01/demo01",
"pages/logs/logs"
],
"window": {
"backgroundTextStyle": "dark",
"navigationBarBackgroundColor": "#0094ff",
"navigationBarTitleText": "我的应用",
"navigationBarTextStyle": "black",
"enablePullDownRefresh": true,
"backgroundColor": "#e9e9e9"
},
"style": "v2",
"sitemapLocation": "sitemap.json"
}
微信开发小程序敲下面导航栏的时候显示不出来,一直报错,具体报错如下:[ miniprogram/app.json 文件内容错误] miniprogram/app.json: ["tabBar"]["list"][0]["iconPath"]: "icon/_home.png" 未找到["tabBar"]["list"][0]["selectedIconPath"]: "icon/home.png" 未找到["tabBar"]["list"][1]["iconPath"]: "icon/_img.png" 未找到["tabBar"]["list"][1]["selectedIconPath"]: "icon/img.png" 未找到(env: Windows,mp,1.06.2209190; lib: 2.27.0)
真诚答案
你这代码不全吧?
["tabBar"]["list"][0]["iconPath"]: "icon/_home.png" 未找到
是不是配置了底部的tabBar?
应该有一个
"list":[
{
"selectedIconPath":"xxxxxx",
"iconPath": "icon/_home.png",
"pagePath": "xxxx",
"text": "xxxx"
},
....
]
像上面的一段代码,报错信息提到的iconPath、selectedIconPath,你找到那个节点,确认一下右侧的图片路径
应还有一个底部导航配置吧,有的话应该是底部导航的图片引入路径有问题