将我的Chrome扩展程序上传到Chrome网上应用店时,`Manifest文件无效' [英] `Manifest file is invalid` when uploading my chrome extension to the Chrome Web Store

查看:2610
本文介绍了将我的Chrome扩展程序上传到Chrome网上应用店时,`Manifest文件无效'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在本地开发一个Chrome扩展。我刚完成并想将其上传到Chrome网上应用店。当我上传它时,它告诉我:

 发生错误:无效的清单。如果您的清单包含评论,请删除它们,因为我们的画廊不支持它们。 

我检查了JSON以确保它是有效的,据我所知它已经完全有效。我试着用不同的方式命名它并上传它,但它仍然无法工作。我也尝试改变编码,并没有奏效。 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
},
图标:{128:icon.png},
permissions:[
标签,
http:// * / *,
webNavigation,
历史,
存储
] ,
content_scripts:[{
matches:[http:// * / *,https:// * / *],
js:[ js / jquery.min.js,js / tab.js]
}],
background:{
page:background.html
}
}

有没有人知道问题所在?在最终完成扩展后得到这个真的很令人沮丧。

解决方案

p>

无法从'/ Users / jjperezaguinaga / samples / ext'加载扩展名。所需值版本缺失或无效。它必须介于0到65536之间的1-4个点分隔的整数之间。



我从您的版本中删除了一些0,我可以加载它。


I have been developing a chrome extension locally. I just finished it and wanted to upload it to the Chrome Web Store. 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. 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.

Could not load extension from '/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.

I removed some 0's from your version and I was able to load it.

这篇关于将我的Chrome扩展程序上传到Chrome网上应用店时,`Manifest文件无效'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆