Android的工作室:“警告的libpng:ICCP:不承认已被编辑已知sRGB模式” [英] Android Studio: “libpng warning: iCCP: Not recognizing known sRGB profile that has been edited”

查看:534
本文介绍了Android的工作室:“警告的libpng:ICCP:不承认已被编辑已知sRGB模式”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的gradle升级来自:

I have upgrade gradle from :

dependencies {
        classpath 'com.android.tools.build:gradle:1.3.1'
    }

dependencies {
        classpath 'com.android.tools.build:gradle:1.4.0-beta3'
    }

但我得到错误:

AAPT err(Facade for 1057495093): E:\android_studio_workspace\P2JN\p2jn\src\main\res\drawable-mdpi\reload_data.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AAPT err(Facade for 1057495093): E:\android_studio_workspace\P2JN\p2jn\src\main\res\drawable\teamwork.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AAPT err(Facade for 2049818754): E:\android_studio_workspace\P2JN\p2jn\src\main\res\drawable-hdpi\ic_action_update.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AAPT err(Facade for 2049818754): E:\android_studio_workspace\P2JN\p2jn\src\main\res\drawable-ldpi\reload_data.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AAPT err(Facade for 2049818754): E:\android_studio_workspace\P2JN\p2jn\src\main\res\drawable\get_started.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited

编辑在我的项目的gradle buildToolsVersion:

edited buildToolsVersion on my gradle project:

buildToolsVersion "23.0.1"

因此​​,如何解决?

so how to fix it ?

推荐答案

这是你的PNG图像有一些无效的元数据的警告。
最简单有效的办法是通过与 pngcrush 并的使用OptiPNG 工具。

It's a warning that you png images has some invalid metadata. Most simple and effective solution is to optimize your png images with pngcrush and optipng utilities.

运行

pngcrush -ow -rem allb -brute -reduce image.png

optipng -o7 image.png

每一个错误引起的图像上。

on every image that causes error.

这篇关于Android的工作室:“警告的libpng:ICCP:不承认已被编辑已知sRGB模式”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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