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

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Android Studio:libpng warning: iCCP: Not recognizing known sRGB profile that has been edited解决办法(示例代相关的知识,希望对你有一定的参考价值。

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

如下:

 1 AAPT err(Facade for 1944774242): ERROR: 9-patch image D:\workspace_training\MobileSafe\res\drawable-hdpi\call_locate_blue.9.png malformed.
 2 AAPT err(Facade for 1944774242):        Frame pixels must be either solid or transparent (not intermediate alphas).
 3 AAPT err(Facade for 1944774242):        Found at pixel #31 along top edge.
 4 AAPT err(Facade for 1944774242): ERROR: 9-patch image D:\workspace_training\MobileSafe\res\drawable-hdpi\call_locate_orange.9.png malformed.
 5 AAPT err(Facade for 1944774242):        Frame pixels must be either solid or transparent (not intermediate alphas).
 6 AAPT err(Facade for 1944774242):        Found at pixel #31 along top edge.
 7 AAPT err(Facade for 867322671): ERROR: 9-patch image D:\workspace_training\MobileSafe\res\drawable-hdpi\call_locate_white.9.png malformed.
 8 AAPT err(Facade for 867322671):        Frame pixels must be either solid or transparent (not intermediate alphas).
 9 AAPT err(Facade for 867322671):        Found at pixel #31 along top edge.
10 AAPT err(Facade for 867322671): ERROR: 9-patch image D:\workspace_training\MobileSafe\res\drawable-hdpi\call_locate_gray.9.png malformed.
11 AAPT err(Facade for 867322671):        Frame pixels must be either solid or transparent (not intermediate alphas).
12 AAPT err(Facade for 867322671):        Found at pixel #31 along top edge.
13 AAPT err(Facade for 2079374597): ERROR: 9-patch image D:\workspace_training\MobileSafe\res\drawable-hdpi\call_locate_green.9.png malformed.
14 AAPT err(Facade for 2079374597):        Frame pixels must be either solid or transparent (not intermediate alphas).
15 AAPT err(Facade for 2079374597):        Found at pixel #31 along top edge.
16 AAPT err(Facade for 2079374597): ERROR: 9-patch image D:\workspace_training\MobileSafe\res\drawable-hdpi\btn_green_normal.9.png malformed.
17 AAPT err(Facade for 2079374597):        Frame pixels must be either solid or transparent (not intermediate alphas).
18 AAPT err(Facade for 2079374597):        Found at pixel #4 along top edge.
19 AAPT err(Facade for 2079374597): ERROR: 9-patch image D:\workspace_training\MobileSafe\res\drawable-hdpi\btn_green_pressed.9.png malformed.
20 AAPT err(Facade for 2079374597):        Frame pixels must be either solid or transparent (not intermediate alphas).
21 AAPT err(Facade for 2079374597):        Found at pixel #3 along top edge.
22 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
23 
24  FAILED
25 
26 FAILURE: Build failed with an exception.
27 
28 * What went wrong:
29 Execution failed for task ‘:mergeDebugResources‘.
30 > Some file crunching failed, see logs for details
31 
32 * Try:
33 Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
34 
35 BUILD FAILED

 

还有:

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

还有:

1 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

还有:

1 AAPT err(Facade for 1944774242): ERROR: 9-patch image D:\workspace_training\MobileSafe\res\drawable-hdpi\call_locate_blue.9.png malformed.
2 
3 
4 AAPT err(Facade for 1077057583):        No marked region found along edge.
5 
6 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

以上是关于Android Studio:libpng warning: iCCP: Not recognizing known sRGB profile that has been edited解决办法(示例代的主要内容,如果未能解决你的问题,请参考以下文章

如何利用jenkins来做android自动化

企业团队专用版即时通信系统-侣信专业版发布

前端如何打war包

tomcat war包解压问题

war包怎么在tomcat启动

如何部署war包到tomcat