androidnine-patch

9patch AAPT: error: file failed to compile


I'm trying to work with a 9patch image format but I get this error when I try to build the app:

AAPT: error: file failed to compile

Any reasons why this could happen?


Solution

  • The reason that the 9patch failed to compile was 9patch bad format - the 9patch indicating pixels wasn't fully black (#000000) but some of them was grey, fixing those pixels to pure black fixed the problem