"The 128x128 icon file is missing" 发布 Chrome 应用程序时出错

"The 128x128 icon file is missing" error when publishing Chrome app

我在将应用程序上传到 Chrome 商店时遇到了严重问题。一直说:

“发生错误:无法处理您的项目。

缺少 128x128 图标文件。"。

我确实有 128x128 的 .png 文件。这是我的 .json 文件:

{
    "name": "Radio Player UK",
    "version": "1.0",
    "manifest_version": 2,
    "description": "Radio, but without the rubbish. The best radio stations are here. Choose from lots of great radio stations.",
    "app":{
        "urls": ["http://www.radioplayeruk.com"],
        "launch":{
            "web_url": "http://www.radioplayeruk.com/index.php"
        }
    },
    "icons":{
        "icons": {
            "16": "logo16.png",
            "128": "logo.png"
        }
    }
}

我知道文件扩展名是区分大小写的,并已相应地进行了调整。

谁能解释一下为什么我总是收到这条消息?

您已设置 icons 两次。 According to the Google docs 应该只有一个 icons 键。

所以,您的清单应该是:

{
    "name": "Radio Player UK",
    "version": "1.0",
    "manifest_version": 2,
    "description": "Radio, but without the rubbish. The best radio stations are here. Choose from lots of great radio stations.",
    "app":{
        "urls": ["http://www.radioplayeruk.com"],
        "launch":{
            "web_url": "http://www.radioplayeruk.com/index.php"
        }
    },
    "icons": {
        "16": "logo16.png",
        "128": "logo.png"
    }
}