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

时间: 2024-10-05 23:09:36

Android Studio:libpng warning: iCCP: Not recognizing known sRGB profile that has been edited解决办法的相关文章

【Xamarin报错】libpng warning : iCCP: Not recognizing known sRGB profile that has been edited

报错: Xamarin Android 编译时发生以下错误: libpng warning : iCCP: Not recognizing known sRGB profile that has been edited 解决: 把android项目下的resource下面的png图片,双击打开,简单编辑保存一下,就OK了. 参考: Here’s a way to resolve the issue within Visual Studio (I'm using VS2015) on a file

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

将 buildToolsVersion "22.0.1" 改为 buildToolsVersion "20.0.0" 版权声明:本文为博主原创文章,未经博主允许不得转载.

zz iCCP: Not recognizing known sRGB profile that has been edited错误

http://my.oschina.net/1pei/blog/479162#OSC_h3_15 http://blog.csdn.net/lzpdz/article/details/50112485 在Android5.0的源码中编译apk会出现如下的问题 libpng warning: "iCCP: Not recognizing known sRGB profile that has been edited" 原因是新版本的libpng对关于ICCP采用了更严苛的约束 解决方法有

android studio问题-ICCP:Not recognizing known sRGB profile

转:http://my.oschina.net/1pei/blog/479162 PNG格式:每个PNG文件是由一个PNG标识(signature),后面跟一些数据块(chunk),每个chunk由 一个chunk类型来标识其功能. 摘要 本文解决了Android Studio 1.2.2下编译期间出现的libpng warning: iCCP: Not recognizing known sRGB profile that has been edited警告问题. 目录[-] 1. 问题描述

处理libpng warning: "iCCP: Not recognizing

在Android5.0的源码中编译apk会出现如下的问题 libpng warning: "iCCP: Not recognizing known sRGB profile that has been edited" 原因是新版本的libpng对关于ICCP采用了更严苛的约束 解决方法有三: 降低 libpng 用 imagemagick strip  .png 不提示warning 这里采用第二种,首先下载imagemagick,由于unix的版本安装麻烦就直接下载windows的

AS问题解决系列3—iCCP: Not recognizing known sRGB profile

http://my.oschina.net/1pei/blog/479162 摘要 本文解决了Android Studio 1.2.2下编译期间出现的libpng warning: iCCP: Not recognizing known sRGB profile that has been edited警告问题. 目录[-] 1. 问题描述 2. PNG文件格式 2.2 数据块(chunk) 2.2.1 4类关键chunk 2.2.2 14类辅助chunk 2.2.3 chunk格式 3. li

This version of android studio is incompatible with the gradle version used.Try disabling the instant run解决办法

今天打开android studio又碰到一个奇怪的问题:This version of android studio is incompatible with the gradle version used.Try disabling the instant runandroid studio和gradle版本不匹配,我的android studio刚更新完没多久,应该就是gradle的问题.果然在stackoverflow上找到了答案: You can use normal build ru

关于mac android studio 与svn 解除关联后 无法再次share (Subversion) 的解决办法

Android studio 把工程share 到 svn 上面,可是一不小心忘了 ignore files 的设置,结果没办法,把svn 上的删掉再重新share 一次,先接触本地代码与svn 的关联,两种方法,(1)android sutio 的设置按钮,找到version control 大类,用鼠标点击这一栏,旁变白色区域,有个project 最右边对应Subversion,白色区域左下角有个减号,点击也可以.(2)从android 切换到project目录,在.idea 文件夹下有个v

Android studio 解决libpng warning: iCCP: Not recogni

在Android5.0的源码中编译apk会出现如下的问题 libpng warning: "iCCP: Not recognizing known sRGB profile that has been edited" 原因是新版本的libpng对关于ICCP采用了更严苛的约束 解决方法有三: 降低 libpng 用 imagemagick strip  .png 不提示warning 这里采用第二种,首先下载imagemagick,由于unix的版本安装麻烦就直接下载windows的