2014-07-08 77 views
0

我收到這個錯誤消息,爲什麼?android eclipse中的錯誤消息

[2014-07-08 22:30:16 - journey] res\drawable\abc_spinner_ab_holo_light (1).xml: Invalid file name: must contain only [a-z0-9_.]

[2014-07-08 22:30:16 - journey] res\drawable\abc_spinner_ab_holo_light (1).xml: Invalid file name: must contain only [a-z0-9_.]

[2014-07-08 22:30:16 - journey] res\drawable\abc_spinner_ab_holo_light (1).xml: Invalid file name: must contain only [a-z0-9_.]

[2014-07-08 22:30:16 - journey] res\drawable-xhdpi\abc_tab_selected_focused_holo.9.png:0: error: Resource entry abc_tab_selected_focused_holo is already defined.

[2014-07-08 22:30:16 - journey] res\drawable-xhdpi\abc_tab_selected_focused_holo.9 (1).png:0: Originally defined here.

回答

0

看起來像複製和粘貼導致的問題。

從文件名中刪除「(1)」。

例如,應將「abc_spinner_ab_holo_light(1).xml」重命名爲「abc_spinner_ab_holo_light.xml」。

對於這一 「abc_tab_selected_focused_holo.9.png」 使其 「abc_tab_selected_focused_holo.png」

+0

我的res文件夾中沒有這些文件.... – EitanG

0

好了,我固定它。 在我的android-support-v7-appcompat項目中,我不知道爲什麼,但它重複了這些文件。 我剛刪除它們。