Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: failed to convert @drawable/picture into a drawable

In my drawable folder I have a few images and they all reference perfect, but when I try and add any more images with the exact same size in the same folder, and try to reference it, is flags up an error "Failed to convert @drawable/picture into a drawable". I have tried the same image with a different name and it just keeps giving me that error. I have also tried it in a different XML layout and the same thing. Also the name of the picture have been "jack", "abc", "question_mark" as you can see there are strictly in the rules of the what characters you can use, and still the error message keeps coming up. Any advice would be great on how to fix the problem, thanks.

Failed to convert @drawable/picture into a drawable

like image 678
Jack Trowbridge Avatar asked Jan 15 '12 23:01

Jack Trowbridge


People also ask

How do I import a picture into drawable?

Drag and drop your images directly onto the Resource Manager window in Android Studio. Alternatively, you can click the plus icon (+), choose Import Drawables, as shown in figure 3, and then select the files and folders that you want to import. Figure 3: Select Import Drawables from the dropdown menu.


1 Answers

Restart Eclipse (unfortunately) and the problem will go away.

like image 166
Androliyah Avatar answered Sep 27 '22 23:09

Androliyah