发生错误:无法处理您的商品

时间:2013-10-25 09:49:34

标签: google-chrome-extension manifest

我正在尝试使用开发者信息中心将应用上传到Chrome网上商店。上传ZIP文件后我收到此错误

An error occurred: Failed to process your item.

The field permissions.http://webhvd.dincloud.com/ is not allowed in manifest.
The field content_scripts is not allowed in manifest.

我已经使用Chrome开发者模式测试了应用程序,它运行正常。没有错误。这是清单文件:

{
    "app": {
    "launch": {
        "local_path": "main.html"
    }
},
"content_scripts": [ {
    "js": [ "jsfile.js" ],
    "matches": [ "http://*.example.com/*" ]
} ],
"content_security_policy": "default-src 'self'; script-src 'self' http://*.examplecom; style-src 'self' http://sub.example.com; img-src 'self' http://*.example.com; font-src *; connect-src 'self' http://sub.example.com ",
"default_locale": "en",
"description": "__MSG_PRODUCT_DESCRIPTION__",
"icons": {
    "128": "icon128.webp",
    "16": "icon16.webp",
    "48": "icon48.webp"
},
"manifest_version": 2,
"name": "__MSG_PRODUCT_NAME__",
"permissions": [ "http://sub.example.com/", "storage", "clipboardRead", "clipboardWrite" ],
"version": "1.2"
}

任何帮助都将受到高度赞赏。

1 个答案:

答案 0 :(得分:3)

我遇到了同样的问题。我从清单文件中删除了所有注释,并为我解决了这个问题。您可能需要仔细检查您上传的清单是否没有评论。