【问题标题】:Invalid value for 'manifest_version'. Must be an integer greater than zero“manifest_version”的值无效。必须是大于零的整数
【发布时间】:2013-06-07 16:52:10
【问题描述】:
{
    "name": "Park_School",
    "version":"2",
    "manifest_version":"2",
    "icons": { "128": "128.png" },
    "app": {
        "urls": [
             "http://vle.parkcommunity.devon.sch.uk/"
        ],
        "launch": {
             "web_url": "http://vle.parkcommunity.devon.sch.uk/"
        }
    }
}

显然清单版本大于零,但谷歌浏览器说它不是。帮忙?

【问题讨论】:

    标签: google-chrome google-chrome-extension manifest


    【解决方案1】:

    "manifest_version" 的值必须是整数;你提供了一个字符串。

    要解决此问题,请将"manifest_version": "2" 替换为"manifest_version": 2。

    【讨论】:

      【解决方案2】:

      manifest_version 应该是一个整数值。请访问here了解更多详情。

      所以你的配置应该是:

      {
          "name": "Park_School",
          "version":"2",
          "manifest_version":2,
          "icons": { "128": "128.png" },
          "app": {
              "urls": [
                   "http://vle.parkcommunity.devon.sch.uk/"
              ],
              "launch": {
                   "web_url": "http://vle.parkcommunity.devon.sch.uk/"
              }
          }
      }
      

      【讨论】:

        猜你喜欢
        • 2018-03-30
        • 2017-01-30
        • 1970-01-01
        • 2016-03-16
        • 1970-01-01
        • 1970-01-01
        • 2019-11-02
        • 2011-12-19
        相关资源
        最近更新 更多