Chrome浏览器说我的扩展程序的清单文件丢失或不可读 [英] Chrome says my extension's manifest file is missing or unreadable

查看:3516
本文介绍了Chrome浏览器说我的扩展程序的清单文件丢失或不可读的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名新的chrome扩展程序开发人员,并且正在浏览有关制作"Hello World"扩展程序的Chrome教程,这是我的代码:

I'm a new chrome extension developer, and I was going through the Chrome tutorial on making a "Hello World" extension, here's my code:

     {
      "name": "My First Extension",
      "version": "1.0",
      "manifest_version": 2,
      "description": "The first extension that I made.",
      "browser_action": {
       "default_icon": "icon.png"
      },
       "permissions": [
       "http://api.flickr.com/"
      ]
      }

当我去加载解压后的扩展名时,它说清单文件丢失或不可读.是的,我将图像放在一个文件夹中,并且正确命名为manifest.json

When I went to load the unpacked extension it said the manifest file was missing or unreadable. Yes I have the image in a folder with it and it is correctly named manifest.json

推荐答案

常见的情况是清单文件的名称不正确.仔细检查名称(和扩展名),并确保其名称不以 .txt 结尾(例如).

Something that commonly happens is that the manifest file isn't named properly. Double check the name (and extension) and be sure that it doesn't end with .txt (for example).

为了确定这一点,请确保您没有隐藏文件扩展名:

In order to determine this, make sure you aren't hiding file extensions:

  1. 打开Windows资源管理器
  2. 转到文件夹和搜索选项">查看"选项卡
  3. 取消选中隐藏扩展名的已知文件类型

此外,请注意,清单文件的命名实际上是区分大小写的,即 manifest.json != MANIFEST.JSON .

Also, note that the naming of the manifest file is, in fact, case sensitive, i.e. manifest.json != MANIFEST.JSON.

这篇关于Chrome浏览器说我的扩展程序的清单文件丢失或不可读的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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