Android 绘图 Eclipse 错误

发布于 2024-11-25 08:15:59 字数 4399 浏览 1 评论 0原文

我的项目有问题。 Eclipse 给了我这个错误

[2011-07-20 10:34:21 - BurcFM] libpng error: Not a PNG file
[2011-07-20 10:34:21 - BurcFM] ERROR: Failure processing PNG image C:\Users\muhammed\workspace\BurcFM\res\drawable\icon.png
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\layout\main.xml:2: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/background').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\layout\main.xml:47: error: Error: No resource found that matches the given name (at 'drawableLeft' with value '@drawable/address').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\layout\main.xml:57: error: Error: No resource found that matches the given name (at 'drawableLeft' with value '@drawable/web').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\layout\main.xml:64: error: Error: No resource found that matches the given name (at 'drawableLeft' with value '@drawable/phone').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\layout\main.xml:72: error: Error: No resource found that matches the given name (at 'drawableLeft' with value '@drawable/fax').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\layout\main.xml:80: error: Error: No resource found that matches the given name (at 'drawableLeft' with value '@drawable/email').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\layout\main.xml:91: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/back_burc').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\layout\main.xml:126: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/back_burc').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\layout\main.xml:175: error: Error: No resource found that matches the given name (at 'drawableLeft' with value '@drawable/play_btn').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\layout\main.xml:184: error: Error: No resource found that matches the given name (at 'drawableLeft' with value '@drawable/play_btn').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\layout\main.xml:194: error: Error: No resource found that matches the given name (at 'drawableLeft' with value '@drawable/play_btn').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\layout\main.xml:205: error: Error: No resource found that matches the given name (at 'drawableLeft' with value '@drawable/play_btn').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\drawable\tab_about.xml:4: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/about_burc').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\drawable\tab_about.xml:7: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/about_burc').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\drawable\tab_freq.xml:4: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/freq_burc').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\drawable\tab_freq.xml:7: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/freq_burc').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\drawable\tab_live.xml:4: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/play_burc').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\drawable\tab_live.xml:7: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/play_burc').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\drawable\tab_programm.xml:4: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/prog_burc').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\drawable\tab_programm.xml:7: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/prog_burc').

,它似乎找不到可绘制对象,但所有可绘制对象都在可绘制对象文件夹中,我不知道出了什么问题,我只是删除了一个背景并放了一个新的背景,之后它开始给出这个错误。

I've a problem with my project. Eclipse gives me this mistakes

[2011-07-20 10:34:21 - BurcFM] libpng error: Not a PNG file
[2011-07-20 10:34:21 - BurcFM] ERROR: Failure processing PNG image C:\Users\muhammed\workspace\BurcFM\res\drawable\icon.png
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\layout\main.xml:2: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/background').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\layout\main.xml:47: error: Error: No resource found that matches the given name (at 'drawableLeft' with value '@drawable/address').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\layout\main.xml:57: error: Error: No resource found that matches the given name (at 'drawableLeft' with value '@drawable/web').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\layout\main.xml:64: error: Error: No resource found that matches the given name (at 'drawableLeft' with value '@drawable/phone').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\layout\main.xml:72: error: Error: No resource found that matches the given name (at 'drawableLeft' with value '@drawable/fax').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\layout\main.xml:80: error: Error: No resource found that matches the given name (at 'drawableLeft' with value '@drawable/email').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\layout\main.xml:91: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/back_burc').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\layout\main.xml:126: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/back_burc').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\layout\main.xml:175: error: Error: No resource found that matches the given name (at 'drawableLeft' with value '@drawable/play_btn').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\layout\main.xml:184: error: Error: No resource found that matches the given name (at 'drawableLeft' with value '@drawable/play_btn').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\layout\main.xml:194: error: Error: No resource found that matches the given name (at 'drawableLeft' with value '@drawable/play_btn').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\layout\main.xml:205: error: Error: No resource found that matches the given name (at 'drawableLeft' with value '@drawable/play_btn').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\drawable\tab_about.xml:4: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/about_burc').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\drawable\tab_about.xml:7: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/about_burc').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\drawable\tab_freq.xml:4: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/freq_burc').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\drawable\tab_freq.xml:7: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/freq_burc').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\drawable\tab_live.xml:4: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/play_burc').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\drawable\tab_live.xml:7: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/play_burc').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\drawable\tab_programm.xml:4: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/prog_burc').
[2011-07-20 10:34:21 - BurcFM] C:\Users\muhammed\workspace\BurcFM\res\drawable\tab_programm.xml:7: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/prog_burc').

it's seems like it can't find the drawables, but there are all in drawable folder, I don't know what's wrong, I just deleted a background and put a new one instead, after that it start giving this error.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

无语# 2024-12-02 08:15:59

确保您的 icon.png 是 24 位或 32 位。 Android 不处理 8 位 PNG。

Ensure your icon.png is either 24 or 32 bit. Android doesn't handle 8 bit PNGs.

一腔孤↑勇 2024-12-02 08:15:59

哦。对于图像,请提供不带扩展名的图像名称。为我工作。也许对于任何文件。

Oh.For images, give the Image name without the extension. Worked for me. Maybe for any file.

小耗子 2024-12-02 08:15:59

chk 你的 style.xml ,你必须定义你的样式,并且你的特定布局文件夹中必须有 icon.png 文件。也许你的错误会得到解决。

chk your style.xml there you must be define your style and you must have icon.png files in your specific layout folder. may be your error will be solved.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文