Android Studio导入eclipse工程出现“app:mergeDebugResources“


错误提示如下:

AAPT out(1684124565) : No Delegate set : lost message:Done
...
AAPT err(1684124565): libpng error: Not a PNG file
...
AAPT err(1278358581): D:\AndroidWork\AndroidStudio***\app\src\main\res\drawable-hdpi\background.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
Error:Execution failed for task ':app:mergeDebugResources'.
Crunching Cruncher start.png failed, see logs

StackOverflow上说是文件路径太长,移动了也没有成功
StackOverflow类似问题
有什么好的解决办法吗?

Android eclipse android-studio

武藤遊戲F 9 years, 10 months ago

先检查一下这张图片有没有问题
'app\src\main\res\drawable-hdpi\background.png'

不过我记得这个错误应该是 warnning 级别的...不会导致build failed啊
不行的话试试升级 build tools 到最新版

wxklr answered 9 years, 10 months ago

Your Answer