Google chrome devtools Chrome所需值';版本';丢失或无效。它必须介于1-4个点分隔整数之间,每个整数必须介于0和65536之间
我一直在尝试创建个性化主题,但每次我上传chrome时都会说“缺少必需的值'version'或该值无效。它必须在1-4个点分隔的整数之间,每个整数都在0和65536之间。这是我第一次尝试这个,所以我不知道它是什么,我必须更改。即使我这样做了,我也会改变什么呢。我怎样才能解决这个问题Google chrome devtools Chrome所需值';版本';丢失或无效。它必须介于1-4个点分隔整数之间,每个整数必须介于0和65536之间,google-chrome-devtools,Google Chrome Devtools,我一直在尝试创建个性化主题,但每次我上传chrome时都会说“缺少必需的值'version'或该值无效。它必须在1-4个点分隔的整数之间,每个整数都在0和65536之间。这是我第一次尝试这个,所以我不知道它是什么,我必须更改。即使我这样做了,我也会改变什么呢。我怎样才能解决这个问题 { "manifest_version": 2, "name": "Chrome Themes", "theme": { "images" : { "theme_frame" : "
{
"manifest_version": 2,
"name": "Chrome Themes",
"theme": {
"images" : {
"theme_frame" : "Images/Cracked Dimensions.jpg",
"theme_toolbar" : "Images/Cracked Dimensions.jpg",
"theme_ntp_background" : "Images/Halloween Whopper.jpg",
"theme_tab_background" : "Images/Halloween Whopper.jpg"}
}
,"colors" : {
"ntp_link": [118,17,25],
"ntp_text": [118,17,25],
"ntp_section_link": [118,17,25],
"ntp_section_text": [51 , 55 , 58],
"ntp_background": [51 , 55 , 58],
"frame": [51 , 55 , 58],
"toolbar": [51 , 55 , 58],
"tab_text": [118,17,25],
"tab_background_text": [51 , 55 , 58],
"bookmark_text": [118,17,25]
},
"tints" : {
"buttons" : [0.33, 0.5, 0.47],
"frame_inactive": [0.50, 0.50, 0.50],
"frame_incognito_inactive": [0.50, 0.50, 0.50]
},
"properties" : {
"ntp_background_alignment" : "center",
"ntp_background_repeat": "no-repeat"
}
}
正如错误所指出的,您必须有一个
版本
键,其中一到四个数值由
分隔
例如:
完整的JSON:
{
"version": "45.0.2454.93",
"manifest_version": 2,
"name": "Chrome Themes",
"theme": {
"images" : {
"theme_frame" : "Images/Cracked Dimensions.jpg",
"theme_toolbar" : "Images/Cracked Dimensions.jpg",
"theme_ntp_background" : "Images/Halloween Whopper.jpg",
"theme_tab_background" : "Images/Halloween Whopper.jpg"}
}
,"colors" : {
"ntp_link": [118,17,25],
"ntp_text": [118,17,25],
"ntp_section_link": [118,17,25],
"ntp_section_text": [51 , 55 , 58],
"ntp_background": [51 , 55 , 58],
"frame": [51 , 55 , 58],
"toolbar": [51 , 55 , 58],
"tab_text": [118,17,25],
"tab_background_text": [51 , 55 , 58],
"bookmark_text": [118,17,25]
},
"tints" : {
"buttons" : [0.33, 0.5, 0.47],
"frame_inactive": [0.50, 0.50, 0.50],
"frame_incognito_inactive": [0.50, 0.50, 0.50]
},
"properties" : {
"ntp_background_alignment" : "center",
"ntp_background_repeat": "no-repeat"
}
}
我也遇到了同样的问题,我终于找到了适合我的解决方案。
您还需要将版本号用双引号括起来。
"version": "1.0",
希望这会有帮助 这是定义“版本”和“清单版本”的正确方法
使用此代码。您将获得解决方案。chrome现在说“Manifest不是有效的JSON。第3行,第3列,语法错误。”为什么chrome无法识别它@Mureinik@YnezTorres对不起,
版本
条目后缺少逗号。已编辑并修复。Chrome现在表示无法加载“C:\Users\Titan\Downloads\Chrome Themes\Images\Images/Cracked Dimensions.jpg”,@Mureinik是文件太大还是图片的尺寸不正确?对主题框和工具栏有什么要求?感谢您尝试帮助我。
"version": "1.0",
"version": "1.0",
"manifest_version": 2,
"version": "1.0",
"manifest_version": 2,