"缺少128x128图标文件"发布Chrome应用时出错

时间:2016-03-15 13:07:20

标签: google-chrome google-chrome-app

我在将应用上传到Chrome Store时遇到了严重问题。继续说:

"发生错误:无法处理您的商品。

缺少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"
        }
    }
}

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

有人能说清楚为什么我会继续收到这条消息吗?

1 个答案:

答案 0 :(得分:1)

您已将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"
    }
}