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
}`
………………