Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Studio won't compile the 9 patch files. #19

Open
techartist opened this issue Dec 19, 2020 · 3 comments
Open

Android Studio won't compile the 9 patch files. #19

techartist opened this issue Dec 19, 2020 · 3 comments

Comments

@techartist
Copy link

getting AAPT: error: file failed to compile.

@stefan89
Copy link

I have the same issue

@clownba0t
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants