2

我正进入(状态:

[2012-06-10 12:47:39 - pet_game] Launch canceled!
[2012-06-10 12:49:13 - pet_game] res\drawable-hdpi\Restaurant-Blue-2-icon.png: Invalid file name: must contain only [a-z0-9_.]
[2012-06-10 12:49:13 - pet_game] res\drawable-hdpi\Restaurant-Blue-2-icon.png: Invalid file name: must contain only [a-z0-9_.]
[2012-06-10 12:49:13 - pet_game] res\drawable-hdpi\Restaurant-Blue-2-icon.png: Invalid file name: must contain only [a-z0-9_.]
[2012-06-10 12:49:13 - pet_game] res\drawable-hdpi\Restaurant-Blue-2-icon.png: Invalid file name: must contain only [a-z0-9_.]
[2012-06-10 12:49:13 - pet_game] res\drawable-hdpi\Restaurant-Blue-2-icon.png: Invalid file name: must contain only [a-z0-9_.]
[2012-06-10 12:49:13 - pet_game] res\drawable-hdpi\baseball-icon.png: Invalid file name: must contain only [a-z0-9_.]

我知道这是因为我在图像文件名中有大写字母,所以我删除了这两个文件。但是,我仍然遇到同样的错误。我试图刷新整个项目并重新启动 eclipse,但它没有帮助。我该怎么办?

4

3 回答 3

4

不要使用:-. 而是使用:_

于 2012-06-10T17:07:19.090 回答
1

资源名称不允许使用大写字母。只有小写字母 (az)、数字 0-9、.(点)和 _(下划线)有效。
使用Restaurant_Blue_2_icon.pngbaseball_icon.png作为图像名称。

于 2012-09-27T11:49:01.357 回答
0

baseball-icon.png名字太无效了,把它改成baseball_icon.png你就可以了。

于 2012-06-10T17:13:42.780 回答