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

前端 未结 14 1941
隐瞒了意图╮
隐瞒了意图╮ 2020-12-02 10:16

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 refe

14条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-02 10:44

    I think I found a way to have it work without restarting Eclipse, or without closing project (it worked for me):

    • rename image file name under res/ in Eclipse -> choose file and press F2 (for me it res/drawable-mdpi/bush-landscape.jpg -> changed to bush.jpg)

    • Build Project (it will still show error)

    • change image where you used it (I changed in Graphical Layout. For me the place was LinearLayout/Background/bush-landscape -> changed "bush-landscape" to "bush")

    • Build Project

提交回复
热议问题