9 patch image prevent build project android studio -


i moving gradle build . have error lot of 9-patch images .

note drawable auto generated http://android-holo-colors.com old.

i using android studio 0.5.1 , build tool version 19.0.3 error

error:execution failed task ':app:mergedebugresources'. > error: failed run command:     /applications/android studio.app/sdk/build-tools/19.0.3/aapt s -i /users/ed/desktop/testandroid/app/src/main/res/drawable-mdpi/spinner_default_holo_dark.9.png -o /users/ed/desktop/testandroid/app/build/res/all/debug/drawable-mdpi/spinner_default_holo_dark.9.png   error code:     42   output:     error: 9-patch image /users/ed/desktop/testandroid/app/src/main/res/drawable-mdpi/spinner_default_holo_dark.9.png malformed.            frame pixels must either solid or transparent (not intermediate alphas).            found @ pixel #3 along top edge.     /users/ed/desktop/testandroid/app/src/main/res/drawable-hdpi/cab_background_bottom_test.9.png     error:ticks in transparent frame must black or red. - error: 9-patch image /users/ed/desktop/testandroid/app/src/main/res/drawable-mdpi/spinner_default_holo_dark.9.png malformed. 

anyone faced same problem.

have tried following suggestions in error log? i.e. take @ 3rd (possibly 4th if treats 0 indexed?) pixel along top row in image editor:

  • is pixel red or black (#ff0000 or #000000)?
  • does have alpha value of 255 or 0?

if answer "no", guess that's problem. need applied other marker pixels around edge of images.

i'd add comment, don't have enough rep - sorry.


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -