宝塔山 发表于 2024-8-29 06:44:10

UNI-APP_getLocation:fail the api need to be declared in the requiredPr

解决微信小步伐报错getLocation:fail the api need to be declared in the requiredPrivateInfos field in app.json;

报错如下

https://i-blog.csdnimg.cn/direct/aa8ce6892d42407384a7b990894116db.png
解决方案:

打开uniapp官网  搜索 requiredPrivateInfos  
https://i-blog.csdnimg.cn/direct/ec15bea324b445c0b8ef1ebce2b71411.png
uniapp项目

打开uniapp项目的设置文件manifest.json,选择“源码视图”。
https://i-blog.csdnimg.cn/direct/9f97283198d84cddbcdb2dfaa6cdee2c.png

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页: [1]
查看完整版本: UNI-APP_getLocation:fail the api need to be declared in the requiredPr