shadow4android icon indicating copy to clipboard operation
shadow4android copied to clipboard

Android Studio won't compile the 9 patch files.

Open techartist opened this issue 5 years ago • 3 comments

getting AAPT: error: file failed to compile.

techartist avatar Dec 19 '20 00:12 techartist

I have the same issue

stefan89 avatar Jan 26 '21 15:01 stefan89

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!

clownba0t avatar Apr 27 '21 04:04 clownba0t