简体   繁体   English

将我的chrome扩展程序上传到Chrome网上应用店时,“清单文件无效”

[英]`Manifest file is invalid` when uploading my chrome extension to the Chrome Web Store

I have been developing a chrome extension locally. 我一直在本地开发chrome扩展程序。 I just finished it and wanted to upload it to the Chrome Web Store. 我刚完成,并想将其上传到Chrome网上应用店。 When I uploaded it and it told me: 当我上传它并告诉我:

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

I checked the JSON to make sure it it was valid and as far as I can tell it is fully valid. 我检查了JSON以确保它是有效的,并且据我所知它是完全有效的。 I tried naming it differently and uploading it and it still didn't work. 我尝试用不同的方式命名并上传它,但仍然无法正常工作。 I also tried changing the encoding and that did not work. 我也尝试更改编码,但没有用。 The Manifest is below 清单在下面

{
    "name": "Name",
    "version": "0.0.0.0.1",
    "manifest_version": 2,
    "description": "Description",
    "browser_action": {
        "default_icon": "icon.png",
        "default_popup": "popup.html"
    },
    "icons": { "128": "icon.png"},
    "permissions": [
        "tabs",
        "http://*/*",
        "webNavigation",
        "history",
        "storage"
    ],
    "content_scripts": [{
        "matches": ["http://*/*", "https://*/*"],
        "js": ["js/jquery.min.js", "js/tab.js"]
    }],
    "background": {
        "page": "background.html"
    }
}

Does any one have any clue what the problem is? 有谁知道这是什么问题吗? It is really frustrating to get this after finally finishing the extension. 在最终完成扩展后获得此功能实在令人沮丧。

Used your manifest.json, got this error. 使用您的manifest.json文件,收到此错误。

Could not load extension from '/Users/jjperezaguinaga/samples/ext'. 无法从“ / Users / jjperezaguinaga / samples / ext”加载扩展名。 Required value 'version' is missing or invalid. 必需的值“版本”丢失或无效。 It must be between 1-4 dot-separated integers each between 0 and 65536. 它必须是1-4个点分隔的整数,每个整数都在0到65536之间。

I removed some 0's from your version and I was able to load it. 我从您的版本中删除了一些0,并且能够加载它。

replace 更换

"version": "0.0.0.0.1"

with

"version": "1.0"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM