我得到了:
[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,但没有帮助。我该怎么办?
发布于 2012-06-11 01:07:19
不要使用:-。改为使用:_。
发布于 2012-09-27 19:49:01
资源名称不允许大写。只有小写字母(a-z)、数字0-9、.(点)和_(下划线)有效。
使用Restaurant_Blue_2_icon.png和baseball_icon.png作为图像名称。
发布于 2012-06-11 01:13:43
baseball-icon.png太无效了,将其名称更改为baseball_icon.png,您就可以使用它了。
https://stackoverflow.com/questions/10970573
复制相似问题