Whenever I try to add a 9-patch image to the \\drawable
folder in my project, I get the same error:
ERROR: 9-patch image C:\\...\\res\\drawable\
I had the same problem when I migrated a project form Eclipse to Android Studio.
What you need to do is, remove .9 from the image file name and then, open it in draw9patch tool (located in your /sdk/tools directory) and now, click on Show Bad Patches button on the right upper corner.
You should then see the bad pixels and areas marked in red, you need to do some work there until you have no red bad patches. For me, I just marked one pixel on the middle left edge, and one pixel on middle upper edge, and marked almost all of the right edge and bottom edge. click button again and see that you have no bad patches.
Save the file as .9.png and put it back in the res folder of your project. Android Studio should then build your project with no problem for 9 patch iamges.