android studio执行 Information:Gradle tasks [:app:assembleDebug]失败处理


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

这里写图片描述


根据报错提示:找到AAPT err(Facade for 1339051672): ERROR: 9-patch image D:\WORK_PASECE\anroid_studio\android_workpace\MyApplication\app\src\main\res\drawable\chatitem_in_bg.9.png malformed. 
这个文件。 
1.做点9处理。 
2.如果点9处理不能能解决问题,可以 
在你的主工程文件夹里的build.gradle文件里,添加配置如下: 
aaptOptions.cruncherEnabled = false 
aaptOptions.useNewCruncher = false 
添加位置如下:

Android { 
compileSdkVersion 24 
buildToolsVersion ‘24.0.1’

aaptOptions.cruncherEnabled = false 
aaptOptions.useNewCruncher = false

defaultConfig { 
minSdkVersion 10 
targetSdkVersion 19 
}` 
………………


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM