Android agregar nueva imagen da error

This might seems silly but seriously I don't even know why it reacts that way. I am using eclipse JUNO, and I just trying out simple program enables me to put an image inside the layout after my real program said it have the error.

The project shows the error icon but when looking all in the subs-project like the class, layout everything, it is crystal clear. You can see it like the picture above.

enter image description here

I have making an android project before I am updating the adt and stuff. Before this, all I do just put any picture(s) I want in any folder drawable. I believe this is the right step and I know I do the same thing in here but it have issue with it. I even search on the basic tutorial how to put the image and it did the same why I did.

Does anyone knows what had happen here?

preguntado el 05 de septiembre de 12 a las 10:09

its due to "H" change to h use only small letters for images in android cap not allowed -

Clean project and check out all consoles, what they say - 95% you'll find your answer there. -

4 Respuestas

Android dont allow image names to contain capital letters in drawable folder change the name to contain only small letters

Respondido el 05 de Septiembre de 12 a las 10:09

Capital letters , and some symbols are not allowed to be in the name of the png file , update the name of the png file , . make it in smaall letters

Respondido el 05 de Septiembre de 12 a las 10:09

As per user inazaruk's answer, Hence the reason for not using special characters inside file names, as they can no be used in Java names.

As for capital letters, I guess that's to avoid one little problem in Windows vs. Linux environment. That's because Linux thinks that Icon.png and icon.png are different files, and Windows thinks that Icon.png and icon.png is the same file. So anyone using Linux can create application that is not compilable on Windows.

Entonces, cambia tu Humanpng con human Also don't use the extension png as picture name.

contestado el 23 de mayo de 17 a las 13:05

Solo revisa tu Problems tab in Eclipse. You can find it from

Window > Show View > Problems.

There you can find the error description.

Respondido el 05 de Septiembre de 12 a las 17:09

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.