将9个补丁图像添加到项目

时间:2017-08-17 09:39:12

标签: android nine-patch

当我将这9个补丁图像添加到可绘制文件夹时,我遇到了以下错误。

Error:Some file crunching failed, see logs for details
Error:Execution failed for task ':app:mergeDebugResources'.
> Error: Some file crunching failed, see logs for details

根据Android Studio 9补丁编辑器,我的图像中没有任何不良补丁,因此图像是正确的。

enter image description here

我做了一些搜索并尝试了以下解决方案。但仍然没有运气。

  1. 更改了项目位置,以避免项目路径限制为256个字符。
  2. 添加了aaptOptions cruncherEnabled = false
  3. 无效缓存/重启
  4. 使用9个补丁图像总会引起头痛,还有其他替代方案吗?

0 个答案:

没有答案