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

鸿蒙问题(解决)之:hvigor ERROR: Schema validate failed. Detail: Please check the following fields._第1张图片

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

"requestPermissions": [
      {
        "name" : "ohos.permission.INTERNET",
        "reason" : 'need this permission',
        "usedScene" : {
          "abilities" : ["EntryAbility"],
          "when" : "inuse"
        },
      }
    ],

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

鸿蒙问题(解决)之:hvigor ERROR: Schema validate failed. Detail: Please check the following fields._第2张图片

你可能感兴趣的:(鸿蒙问题,鸿蒙)