[android-developers] Re: The dreaded error: Error parsing XML: XML or text declaration not at start of entity

2010-10-10 Thread DanH
Export the project, delete it, then import it? On Oct 10, 12:51 pm, Bret Foreman bret.fore...@gmail.com wrote: I accidentally imported a resource file with a capital letter in the name (SDK 8) and as we all know, that corrupts the R.java file in a way that rebuilding the project doesn't fix (I

[android-developers] Re: The dreaded error: Error parsing XML: XML or text declaration not at start of entity

2010-10-10 Thread DanH
Though seems like cleaning the project should work. On Oct 10, 12:51 pm, Bret Foreman bret.fore...@gmail.com wrote: I accidentally imported a resource file with a capital letter in the name (SDK 8) and as we all know, that corrupts the R.java file in a way that rebuilding the project doesn't

[android-developers] Re: The dreaded error: Error parsing XML: XML or text declaration not at start of entity

2010-10-10 Thread Bret Foreman
But it's not really a parsing error. It's a quirk R.java. Removing the error does nothing. Even removing the particular file does nothing, since the error simply moves to the next xml file in res. -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: The dreaded error: Error parsing XML: XML or text declaration not at start of entity

2010-10-10 Thread Bret Foreman
The fundamental problem is that Eclipse will allow you to import files into /res that do not have legal Android names. In my case I had a capital letter the name of a PNG file. Once you do it, then R.java won't build right. I'm sure there's some broken project file somewhere but I can't find

Re: [android-developers] Re: The dreaded error: Error parsing XML: XML or text declaration not at start of entity

2010-10-10 Thread Kostya Vasilyev
Clearing the error manually in this case has worked for me (after renaming the file and refreshing the source tree). -- Kostya Vasilyev -- http://kmansoft.wordpress.com 11.10.2010 1:06 пользователь Bret Foreman bret.fore...@gmail.com написал: The fundamental problem is that Eclipse will allow