Android:无法将@drawable/picture 转换为可绘制对象 [英] Android: failed to convert @drawable/picture into a drawable

查看:25
本文介绍了Android:无法将@drawable/picture 转换为可绘制对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的 drawable 文件夹中,我有一些图像,它们都完美地引用了,但是当我尝试在同一文件夹中添加更多大小完全相同的图像并尝试引用它时,会标记一个错误 无法将@drawable/picture 转换为可绘制对象".我用不同的名字尝试了相同的图像,但它一直给我这个错误.我也在不同的 XML 布局和同样的事情中尝试过它.此外,图片的名称是jack"、abc"、question_mark",正如您所看到的那样,您可以使用哪些字符的规则非常严格,但错误消息仍然不断出现.任何关于如何解决问题的建议都会很棒,谢谢.

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.

未能将@drawable/picture 转换为可绘制对象

Failed to convert @drawable/picture into a drawable

推荐答案

重启 Eclipse(不幸的是),问题就会消失.

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

这篇关于Android:无法将@drawable/picture 转换为可绘制对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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