问题原因:
修改了UI,必须修改.9图,同时又不想修改文件的名字
遇到报一下错误:
Error:Some file crunching failed, see logs for details
Error:Execution failed for task ':investigate:mergeDebugResources'.
> Error: Some file crunching failed, see logs for details
解决办法:
添加如下代码
android { ... aaptOptions { aaptOptions.cruncherEnabled = false aaptOptions.useNewCruncher = false }}
原理是: 去除掉AS对png格式文件的检测
参考:http://blog.csdn.net/u013443865/article/details/51232586