Android Studio (using SDK 19, 21 or 22) shows an error that Eclipse ADT (using SDK 19) does not:
Error:9-patch image D:\\Workspaces....\\res\\drawable
Android now has two PNG crunchers, the AAPT one and a Java one. To ignore the PNG error in build process, you can force Gradle build to use the old AAPT by setting the below line in your build.gradle file:
android.aaptOptions.useAaptPngCruncher = true
Still this may give you the same error, as the AAPT tool from the latest SDK might be checking for this error too. So you have two options:
Find an older AAPT, for example,
Write a simple Bash or Perl script, name it "aapt" and put it in your current SDK build-tools folder. This script will call the old version 17 AAPT for your *9.png, and use the new AAPT for everything else. See this Stack Overflow answer for a sample script.