eclipse
转android 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 ImageMagick
、Install 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内容执行即可。