.9图片报错Execution failed for task ':app:mergeDebugResources'. > Crunching Cruncher scrollbar_thumb.9.p
来源:互联网 发布:二维数组中的查找 编辑:程序博客网 时间:2024/05/29 11:24
adt项目导入android studio后报错:
Error:Execution failed for task ':app:mergeDebugResources'. > Crunching Cruncher scrollbar_thumb.9.png failed, see logs
Eclipse运行正常,但用android studio导入后,编译失败
出现: Error:Execution failed for task ':app:mergeDebugResources'. > Crunching Cruncher scrollbar_thumb.9.png failed, see logs
经过百度,有人提出:点9图不标准咯,你打开这个图,看下有一些bad patch,修正下就好了。 Android Studio导入很方便也很简单的。但是它的lint要求严格,会要求符合标准的文件命名和.9图
但经过修改后并没有达到想要的效果。
不过我用google在国外的网站搜了个遍,然后找到这个方法,在你的主工程文件夹里的build.gradle文件里,加上下面这两句:
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
我的改完以后是这样的:android {
compileSdkVersion 19buildToolsVersion "23.0.1"aaptOptions.cruncherEnabled = falseaaptOptions.useNewCruncher = falsedefaultConfig { minSdkVersion 10 targetSdkVersion 19}
在其他的博客上看到其他几种方法,希望对你有帮助。
1、在Android studio里面直接编辑.9图,Android studio的UI编辑能力比Eclipse要强大得多点击show bad patches,如果存在bad patches就编译不过,但是当有许多图片需要修改的话,那就很复杂。
2、由于在Android studio是将图片资源默认放入mipmap,而Eclipse是放入drawable中,所以当出现.9图报错时,我们将报错的图片放入drawable文件中,这样就不会报错了。
然后这个错误就没有了。希望对你有所帮助。
阅读全文
0 0
- .9图片报错Execution failed for task ':app:mergeDebugResources'. > Crunching Cruncher scrollbar_thumb.9.p
- Error:Execution failed for task ':app:mergeDebugResources'. > Crunching Cruncher bg_btn.9.png
- Error:Execution failed for task ':app:mergeDebugResources'. > Crunching Cruncher night_pop_bg.9.png
- Error:Execution failed for task ':app:mergeDebugResources'. > Crunching Cruncher bg_btn.9.png
- Error:Execution failed for task ':app:mergeDebugResources'. > Crunching Cruncher bg_btn.9.png
- Execution failed for task 'app:mergeDebugResources' Crunching Cruncher…png failed
- 使用anddroid studio编译报错 Error:Execution failed for task ':app:mergeDebugResources'. > Crunching Crunch
- Execution failed for task ':app:mergeDebugResources'. > Some file crunching
- android Error:Execution failed for task 'xxxxx:mergeDebugResources'. > Crunching Cruncher ic
- Error:Execution failed for task ':ProjectName:mergeDebugResources'. > Crunching Cruncher *some file*
- Android报错Error:Execution failed for task ':app:mergeDebugResources'.
- Error:Execution failed for task ':app:mergeDebugResources'. 报错
- Execution failed for task ':app:mergeDebugResources'. > Some file crunching failed, see logs for det
- Execution failed for task ':app:mergeDebugResources'. > Some file crunching failed, see logs for de
- Error:Execution failed for task ':app:mergeDebugResources'. > Some file crunching failed, see logs f
- android Error:Execution failed for task ':app:mergeDebugResources'. > Some file crunching failed, se
- 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的根本解决方法
- Tensorflow--图
- 通过编程实现,统计1~n有多少个9
- java中Cookie的使用
- (43)线程运行状态
- Struts2
- .9图片报错Execution failed for task ':app:mergeDebugResources'. > Crunching Cruncher scrollbar_thumb.9.p
- Minimum Window Substring
- keyboard 动态启动或关闭软键盘
- javascript
- hibernate_简介
- Python3之计算机组成及各操作流程
- C++类的声明和对象的定义——形式2(推荐)
- Android 跨程序调用,返回数据获取不到的问题
- 新手该如何高效的学习PHP——PHP免费视频