安卓:无法转换@绘制/图像分割成绘制 [英] Android: failed to convert @drawable/picture into a drawable

查看:171
本文介绍了安卓:无法转换@绘制/图像分割成绘制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的绘制文件夹中我有一些图片,他们都引用完美的,但是当我尝试使用完全相同的尺寸在同一个文件夹中添加更多的图片,并试图引用它,是标志了一个错误的未能转换@绘制/图片转换成可绘制的。我曾尝试相同的图像使用不同的名称,它只是不断给我的错误。我也尝试了在不同的XML布局,同样的事情。另外,图片的名字已经杰克,ABC,question_mark你可以看到有严格的,你可以使用的字符的规则,仍然错误消息不断来了。任何意见将是巨大的关于如何解决这个问题,谢谢。

  

未能转换@绘制/图片转换成可绘制

解决方案

重启Eclipse(不幸),问题就会迎刃而解。

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

解决方案

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

这篇关于安卓:无法转换@绘制/图像分割成绘制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆