AndroidStudo编译时出现“Error:Execution failed for task ‘:app:mergeDebugResources‘. > Some file cru'”,解决办法
2016-10-12 15:06
736 查看
AndroidStudio在编译时出现“Error:Execution failed for task ‘:app:mergeDebugResources‘. > Some file cru......”这个异常,怎么办?
首先你可以看下异常,里面有resouce,肯定是资源文件出了问题
这种异常就是由于图片导致的,多发生在eclipse项目转AndroidStudio项目时出现。
为什么这么说?因为AS对图片要求非常严格,很多eclipse能用的图片,在AS却不能用。
下面分析一下出现这个问题时的几种情况:
1、直接在AS中将jpg图片改成png为后缀的图片,所以导致了这种情况的发生
2、一些点9图不规范,AS中点9图必须四边全部描黑点,而这在eclipse中就比较松懈。所以修改相应的图片就行!
首先你可以看下异常,里面有resouce,肯定是资源文件出了问题
这种异常就是由于图片导致的,多发生在eclipse项目转AndroidStudio项目时出现。
为什么这么说?因为AS对图片要求非常严格,很多eclipse能用的图片,在AS却不能用。
下面分析一下出现这个问题时的几种情况:
1、直接在AS中将jpg图片改成png为后缀的图片,所以导致了这种情况的发生
2、一些点9图不规范,AS中点9图必须四边全部描黑点,而这在eclipse中就比较松懈。所以修改相应的图片就行!
相关文章推荐
- android Error:Execution failed for task ':app:mergeDebugResources'. > Some file crunching failed, se
- AS编译出现 Execution failed for task ':app:mergeDebugResources'. > Some file crunching failed
- Error:Execution failed for task :app:mergeDebugResources>Some file crunching failed的根本解决方法
- Error:Execution failed for task ':app:mergeDebugResources'. > Error: Some file crunching failed
- Error:Execution failed for task ':app:mergeDebugResources'. > Some file crunching failed, see logs f
- Error:Execution failed for task ':app:mergeDebugResources'. > Error: Some file crunching failed, see
- Error:Execution failed for task ':app:mergeDebugResources'. > Error: Some file crunching failed, see
- Error:Execution failed for task ':app:mergeDebugResources'. > Some file crunching failed, see logs f
- Error:Execution failed for task ':app:mergeDebugResources'. > Some file crunching failed, see logs f
- Error:Execution failed for task ':app:mergeDebugResources'. > Error: Some file crunching failed, see
- eclipse 工程导入到Android Studio 出现的问题Error:Execution failed for task ':app:mergeDebugResources'. >
- 【Android】Error:Execution failed for task ':app:mergeDebugResources'. > String index out of range: 0
- Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'解决办法
- Error:Execution failed for task ':app:mergeDebugResources'解决办法
- 我的Android进阶之旅------>解决:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
- Error:Execution failed for task ':app:mergeDebugResources'. > [style/AppTheme] E:\AndroidSpace\BaseP
- Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. > com.android.bui
- [已解决]Error:Execution failed for task ':app:mergeDebugResources'.> -1
- Error:Execution failed for task ':ephwealth:mergeOfficialDebugResources'. > Some file crunching fail
- Execution failed for task ':app:mergeDebugResources'. > Some file crunching failed, see logs for de