bug-android之app:mergeDebugResources
bug描述:Error:Execution failed for task ':app:mergeDebugResources'. > Crunching Cruncher seekbar_thumb_normal.png failed, see logs
解决方法:
1.在build.gradle里添加以下两句:
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
例如:
android {
    compileSdkVersion 23
    buildToolsVersion "23.0.3"
    aaptOptions.cruncherEnabled = false
    aaptOptions.useNewCruncher = false
    defaultConfig {
        applicationId "com.phone.app.phone"
        minSdkVersion 19
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}
,就直接添加到buildToolsVersion的下方即可,然后你再看再将这两项的属性值添加到配置文件中,如下图:


这样再次运行就OK了,这两句的意思是:用来关闭Android Studio的PNG合法性检查的,直接不让它检查!!!
2.就是只有改png图片了 ,国内论坛一个个全叫人改图的真是有点扯淡,如果几百张图片,那还不疯了?
bug-android之app:mergeDebugResources的更多相关文章
- Error:Execution failed for task ':app:mergeDebugResources'. > Some file crunching failed, see logs for details
		Android Studio 编译中断.... Error:Execution failed for task ':app:mergeDebugResources'. > Some file c ... 
- Error:Execution failed for task ':app:mergeDebugResources'. > Crunching Cruncher ******.9.png
		有时候在Android Studio导入Eclipse项目时,会出现Error:Execution failed for task ':app:mergeDebugResources'. > C ... 
- react-native 异常处理 Execution failed for task ':app:mergeDebugResources'.
		1.react-native run-android 失败 * What went wrong:Execution failed for task ':app:mergeDebugResources' ... 
- Error:Execution failed for task ':app:mergeDebugResources'. > Some file crunching failed, see logs f
		今天调试安卓程序遇到的问题Error:Execution failed for task ':app:mergeDebugResources'. > Some file crunching fa ... 
- Cordova 打包 Android release app 过程详解
		Cordova 打包 Android release app 过程详解 时间 -- :: SegmentFault 原文 https://segmentfault.com/a/119000000517 ... 
- 【Android端 APP GPU过度绘制】GPU过度绘制及优化
		一.Android端的卡顿 Android端APP在具体使用的过程中容易出现卡顿的情况,比如查看页面时出现一顿一顿的感受,切换tab之后响应很慢,或者具体滑动操作的时候也很慢. 二.卡顿的原因 卡顿的 ... 
- 分享我开发的网络电话Android手机APP正式版,图文详解及下载
		分享我开发的网络电话Android手机APP正式版,图文详解及下载 分享我开发的网络电话Android手机APP正式版 实时语音通讯,可广域网实时通讯,音质清晰流畅! 安装之后的运行效果: 第一次安装 ... 
- Android开发App工程结构搭建
		本文算是一篇漫谈,谈一谈关于android开发中工程初始化的时候如何在初期我们就能搭建一个好的架构. 关于android架构,因为手机的限制,目前我觉得也确实没什么大谈特谈的,但是从开发的角 ... 
- Android_bug之 task ':app:mergeDebugResources'. > Some file crunching failed, see logs f
		今天调试安卓程序遇到的问题Error:Execution failed for task ':app:mergeDebugResources'. > Some file crunching fa ... 
随机推荐
- 查看linux机器是32位还是64位的方法
			file /sbin/init 或者 file /bin/ls/sbin/init: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dyna ... 
- 自然语言23_Text Classification with NLTK
			QQ:231469242 欢迎喜欢nltk朋友交流 https://www.pythonprogramming.net/text-classification-nltk-tutorial/?compl ... 
- OC面向对象特性:   继承
			基础知识 1.标识符是有字母,数字,下划线组成的. 2.首字母只能是字母,下划线,不能为数字. 3.标识符要做到见名之意. 4.标识符不能使用已定义的关键字和预定义标识符. 继承 继承:子类可以直接访 ... 
- jquery serialize()方法可以序列化表单值为字符串
			<form> <div><input type="text" name="a" value="1" id=&q ... 
- easyUI layout 中使用tabs+iframe解决请求两次方法
			demo中的事例在加载tab页面时是 function createFrame(url) { var s = '<iframe name="iframepanel" scro ... 
- 内嵌DB
			SQLLite H2 MySQL Embeded 等 比较项目 SQLite H2 database engine MySQL Embedded Footprint 350KiB ~1MB <2 ... 
- Windows 让cmd启动的程序在后台运行
			在Linux下要使程序后台运行,可通过 java -jar Client.jar & 来实现 在Windows下,则通过 start /b java -jar Client.jar 来 ... 
- string.capwords() 将每个单词首字母大写
			string.capwords() 将每个单词首字母大写 代码: import string s = ' The quick brown fox jumped over the lazy dog. ' ... 
- C#----对时间结构DateTime的使用(时间日期的使用)
			1.其初始化时间是0001--0--0 0:0:0 class Program { DateTime dt; static void Main(string[] args) { Program pp ... 
- java.util.ResourceBundle使用详解
			java.util.ResourceBundle使用详解 一.认识国际化资源文件 这个类提供软件国际化的捷径.通过此类,可以使您所编写的程序可以: 轻松地本地化或翻译成不同的 ... 
