Android Studio won't compile the 9 patch files.
getting AAPT: error: file failed to compile.
I have the same issue
The images produced sometimes seem to have invalid pixels in the frame. To date, the ones I've seen have been right next to the solid black pixels defining the stretchable area (left and top), and have had an alpha value of 1 (in range 0 to 255) when it should be 0.
I was able to fix this by using the 9-patch editor in AS and simply extending the size of each stretchable area by 1 pixel each way, and then restoring them back to their original sizes. I guess this returns the bad pixel to full transparent, clearing the bad alpha value?
If I were any good at JS I'd have a go at investigating the code, but hope this at least helps anyone else who uses this great tool!