2012-12-27 26 views
0

我試圖提交谷歌Chrome擴展程序,Chrome網上應用店,但我得到了以下錯誤:無法將我的擴展程序提交到Chrome網上應用店:「發生錯誤:無效的清單。」

An error occurred: Invalid manifest. If your manifest includes comments, please remove them as our gallery does not support them yet.

這是我的manifest.json:

{ 
    "name": "IMGit Image Uploader", 
    "version": "1", 
    "description": "Easy and fast image uploading from a simple right click.", 
    "background": {"page": "imgit.html"}, 
    "icons": { 
     "16": "16.png", 
     "48": "48.png", 
     "128": "128.png" 
    }, 
    "permissions": ["contextMenus","tabs","http://*/*","https://*/*",], 
    "manifest_version": 2, 
} 

Adob​​e Dreamweaver的顯示語法第2行錯誤。不知道爲什麼。

怎麼了?

+2

使用jslint.com,它會告訴你你的JSON錯誤。 – Barmar

回答

3

嘗試擺脫你有兩個額外的逗號您的JSON:

{ 
"name": "IMGit Image Uploader", 
"version": "1", 
"description": "Easy and fast image uploading from a simple right click.", 
"background": { 
    "page": "imgit.html" 
}, 
"icons": { 
    "16": "16.png", 
    "48": "48.png", 
    "128": "128.png" 
}, 
"permissions": [ 
    "contextMenus", 
    "tabs", 
    "http://*/*", 
    "https://*/*" 
], 
"manifest_version": 2 
} 

您可以驗證您的JSON文件here

相關問題