Strange Error Message in Eclipse

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

Strange Error Message in Eclipse

Postby doni49 » Fri Nov 11, 2011 5:03 pm

I created a test project and added two XML files. When I save the project, I get an error message that doesn't make any sense.

[2011-11-10 10:21:04 - Testing] res\layout\MainList.xml: Invalid file name: must contain only [a-z0-9_.]
[2011-11-10 10:21:04 - Testing] res\layout\MainList.xml: Invalid file name: must contain only [a-z0-9_.]
[2011-11-10 10:21:04 - Testing] res\layout\PlaylistEditor.xml: Invalid file name: must contain only [a-z0-9_.]
[2011-11-10 10:21:04 - Testing] res\layout\PlaylistEditor.xml: Invalid file name: must contain only [a-z0-9_.]


The filenames do not have any invalid characters. Eclipse DOES save the project (including these files) so why does it throw this error message?

TIA!
Don
doni49
Freshman
Freshman
 
Posts: 3
Joined: Fri Nov 11, 2011 4:46 pm

Top

Re: Strange Error Message in Eclipse

Postby doni49 » Fri Nov 11, 2011 6:03 pm

Problem solved. I also asked in a diff forum.

Following the reply from that forum. I made the suggested change and no more error.

Your XML files can't contain upper-case characters in their names. Rename MainList.xml to mainlist.xml, etc. This is an Android requirement, not an Eclipse one.
Don
doni49
Freshman
Freshman
 
Posts: 3
Joined: Fri Nov 11, 2011 4:46 pm

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: No registered users and 5 guests