您的当前位置:首页正文

微信小程序报错:{“errMsg“:“chooseAddress:fail the api need to be declared in the requiredPrivateInfos field

2024-11-26 来源:个人技术集锦

在HBuilderX中开发的uni-app应用,运行到微信开发者工具,在微信开发者工具中报错:{“errMsg”:“chooseAddress:fail the api need to be declared in the requiredPrivateInfos field in app.json/ext.json”}

现在,运行到微信开发者工具,会自动在app.json文件中增加如下片段:

 "requiredPrivateInfos": [
    "chooseAddress"
  ]

显示全文