Developer
Developer

Reputation: 53

android: eclipse compile error

I create ninepatch image and copy it into drawable folders, the project becomes error, seems that the file cause error and not supported. I use photoshop to create PNG image then edit it using draw9patch tool.I'm using Eclipse 3.5 on win7 with latest sdk update.

Another thing is that he accept another ninepatch image(titlelogin.9.png), but not accept (logohead.9.png)

Here is my draw9patch image and error image.

project folder image

logohead.9 img

Upvotes: 1

Views: 255

Answers (2)

a fair player
a fair player

Reputation: 11786

I think your problem may be the name of the image .... just try to rename it following the naming conventions of android resources ... for ex. try mypic.png with all letters are lowercased.

Upvotes: 1

r1si
r1si

Reputation: 1164

try to press f5 on your package explorer

or try to restart eclipse ,

if don't work and your image is a right ninepatch image make a backup and try Project - clean...

Upvotes: 1

Related Questions