Android Studio:libpng warning: iCCP: Not recognizing known sRGB profile that has been edited解决办法

把以前的eclipse的项目导入Android Studio中,Build项目的时候,出现了一堆错误。

如下:

 AAPT err(Facade for 1944774242): ERROR: 9-patch image D:\workspace_training\MobileSafe\res\drawable-hdpi\call_locate_blue.9.png malformed.
AAPT err(Facade for 1944774242): Frame pixels must be either solid or transparent (not intermediate alphas).
AAPT err(Facade for 1944774242): Found at pixel #31 along top edge.
AAPT err(Facade for 1944774242): ERROR: 9-patch image D:\workspace_training\MobileSafe\res\drawable-hdpi\call_locate_orange.9.png malformed.
AAPT err(Facade for 1944774242): Frame pixels must be either solid or transparent (not intermediate alphas).
AAPT err(Facade for 1944774242): Found at pixel #31 along top edge.
AAPT err(Facade for 867322671): ERROR: 9-patch image D:\workspace_training\MobileSafe\res\drawable-hdpi\call_locate_white.9.png malformed.
AAPT err(Facade for 867322671): Frame pixels must be either solid or transparent (not intermediate alphas).
AAPT err(Facade for 867322671): Found at pixel #31 along top edge.
AAPT err(Facade for 867322671): ERROR: 9-patch image D:\workspace_training\MobileSafe\res\drawable-hdpi\call_locate_gray.9.png malformed.
AAPT err(Facade for 867322671): Frame pixels must be either solid or transparent (not intermediate alphas).
AAPT err(Facade for 867322671): Found at pixel #31 along top edge.
AAPT err(Facade for 2079374597): ERROR: 9-patch image D:\workspace_training\MobileSafe\res\drawable-hdpi\call_locate_green.9.png malformed.
AAPT err(Facade for 2079374597): Frame pixels must be either solid or transparent (not intermediate alphas).
AAPT err(Facade for 2079374597): Found at pixel #31 along top edge.
AAPT err(Facade for 2079374597): ERROR: 9-patch image D:\workspace_training\MobileSafe\res\drawable-hdpi\btn_green_normal.9.png malformed.
AAPT err(Facade for 2079374597): Frame pixels must be either solid or transparent (not intermediate alphas).
AAPT err(Facade for 2079374597): Found at pixel #4 along top edge.
AAPT err(Facade for 2079374597): ERROR: 9-patch image D:\workspace_training\MobileSafe\res\drawable-hdpi\btn_green_pressed.9.png malformed.
AAPT err(Facade for 2079374597): Frame pixels must be either solid or transparent (not intermediate alphas).
AAPT err(Facade for 2079374597): Found at pixel #3 along top edge.
AAPT err(Facade for 95357972): D:\workspace_training\MobileSafe\res\drawable-hdpi\launcher_bg.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited FAILED FAILURE: Build failed with an exception. * What went wrong:
Execution failed for task ':mergeDebugResources'.
> Some file crunching failed, see logs for details * Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED

还有:

 AAPT err(Facade for 1104684076): ERROR: 9-patch image D:\workspace_training\MobileSafe\res\drawable-hdpi\call_locate_blue.9.png malformed.
AAPT err(Facade for 1104684076): Can't have more than one marked region along edge.
AAPT err(Facade for 1104684076): Found at pixel #27 along right edge.
Error:Execution failed for task ':mergeDebugResources'.

还有:

 AAPT err(Facade for 2056444966): D:\workspace_training\MobileSafe\res\drawable-hdpi\launcher_bg.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited

还有:

 AAPT err(Facade for 1944774242): ERROR: 9-patch image D:\workspace_training\MobileSafe\res\drawable-hdpi\call_locate_blue.9.png malformed.

 AAPT err(Facade for 1077057583):        No marked region found along edge.

 AAPT err(Facade for 48998001):        Can't have more than one marked region along edge.

这些问题都是因为drawable中的图片问题引起的。.9图需要重新做下。

制作.9图参考:http://blog.csdn.net/pugongying1988/article/details/6938972

上一篇:Python3 为变量赋值


下一篇:内网ntp时间同步配置