getLocation:fail the api need to be declared in the requiredPrivateInfos field in app.json/ext.json
报错现象image.png解决方案打开uniapp项目的配置文件manifest.json,选择“源码视图”。image.png上代码/*小程序特有相关*/"mp-weixin":{"appid":"","setting":{"urlCheck":true,"es6":true,"minified":true},"usingComponents":true,"permission":{"scope