清单文件即为mainfest.json文件,这是我的mainfest.json文件内容:

chrome插件开发记录(1)——解决问题“清单文件缺失或不可读”

这是加载的文件夹里的设置:

chrome插件开发记录(1)——解决问题“清单文件缺失或不可读”

刚开始找了很久没找到解决办法,后来是看到StackOverFlow有个人解答的:

"

My problem was slightly different.

By default Eclipse saved my manifest.json as an ANSI encoded text file.

Solution:

  • Open in Notepad
  • File -> Save As
  • select UTF-8 from the encoding drop-down in the bottom left.
  • Save

"

于是我就用notepad打开文件,然后另存为时候,保存类型选all types,问题解决了,不知是不是原来真的用了txt格式,字符编号不同了?

相关文章:

  • 2022-12-23
  • 2021-11-02
  • 2022-02-03
  • 2021-06-13
  • 2021-04-03
  • 2021-11-08
猜你喜欢
  • 2021-10-10
  • 2021-06-05
  • 2022-12-23
  • 2022-12-23
  • 2022-01-26
  • 2021-07-03
相关资源
相似解决方案