I am testing 9-patch image . Before everything works fine , and i rename drawable file ic_button_beat_box_default.png to ic_button_beat_box_d
drawable
ic_button_beat_box_default.png
ic_button_beat_box_d
Try setting this in your defaultConfig:
aaptOptions.setProperty("cruncherEnabled", false)