当前位置:
首页
文章
前端
详情

Not recognizing known sRGB profile that has

eclipseandroid studio一直卡在报libpng warning: iCCP: Not recognizing known sRGB profile that has been edited错误上,网上搜索的教程都是简单的说用工具转换,操作步骤不太仔细,经过多次实践终于把这个问题解决。

详细步骤:

1、下载ImageMagick-7.0.2-2-Q16-x64-dll.exe(windows下下载带dll的包)

http://www.imagemagick.org/script/binary-releases.php#windows

2、安装ImageMagick,记得一定要打勾Associate supported file extensions with ImageMagickInstall legacy utilities(e.g. convert),不然后面会提示找不到convert.exe

3、drawable目录下(即pro\src\main\res新建run.bat,内容如下:

set fn=C:\Program Files\ImageMagick-7.0.2-Q16\convert.exe 

#windows
for /f "tokens=*" %i in ('dir/s/b *.png') do "%fn%" "%i" -strip "%i"

#linux
for /f "tokens=*" %%i in ('dir/s/b *.png') do "%fn%" "%%i" -strip "%%i"

pause

4、cmd下执行run.bat,直接直接复制bat内容执行即可。

免责申明:本站发布的内容(图片、视频和文字)以转载和分享为主,文章观点不代表本站立场,如涉及侵权请联系站长邮箱:xbc-online@qq.com进行反馈,一经查实,将立刻删除涉嫌侵权内容。