'manifest_version'的值无效。必须是大于零的整数

时间:2013-06-07 16:52:10

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

{
    "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表示不是。帮助

2 个答案:

答案 0 :(得分:3)

"manifest_version"的值必须是整数;您提供了字符串

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

答案 1 :(得分:0)

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/"
        }
    }
}