当前位置:   article > 正文

鸿蒙问题(解决)之:hvigor ERROR: Schema validate failed. Detail: Please check the following fields._error: schema validate failed. detail: please che

error: schema validate failed. detail: please check the following fields.

记录问题,在鸿蒙开发中申请网络权限,设置了代码如下

  1. "requestPermissions": [
  2. {
  3. "name" : "ohos.permission.INTERNET",
  4. "reason" : 'need this permission',
  5. "usedScene" : {
  6. "abilities" : ["EntryAbility"],
  7. "when" : "inuse"
  8. },
  9. }
  10. ],

reason对应的值必须是定义在resource路径下字符串文件内的,需要如下使用reason

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/274448
推荐阅读
相关标签
  

闽ICP备14008679号