[英]java android: res\drawable-hdpi\Restaurant-Blue-2-icon.png: Invalid file name: must contain only [a-z0-9_.], cant fix
i am getting: 我正进入(状态:
[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_.]
I know this is due to the fact that i have upper case letter in the image file name so I deleted those two files. 我知道这是由于我在图像文件名中使用大写字母,所以我删除了这两个文件。 However, I still get same error.
但是,我仍然遇到相同的错误。 I tried to refresh the entire project and restarting eclipse, but it didnt help.
我试图刷新整个项目并重新启动eclipse,但没有帮助。 what should i do?
我该怎么办?
Don't use: -
. 请勿使用:
-
。 Instead use: _
. 而是使用:
_
。
Uppercases are not allowed for resource names. 资源名称不允许使用大写字母。 Only lowercases(az), numbers0-9, .(dot) and _(underscore)are valid.
仅小写字母(az),数字0-9,。(点)和_(下划线)有效。
Use Restaurant_Blue_2_icon.png
and baseball_icon.png
for the image names. 使用
Restaurant_Blue_2_icon.png
和baseball_icon.png
作为图像名称。
baseball-icon.png
名称太无效,请将其更改为baseball_icon.png
,这样就可以了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.