Coder
Coder

Reputation: 119

premature end of file in eclipse

Premature end of file Error in all xml files in Eclipse (android)

I am having an error in my all xml files including manifiest file. It is "Premature end of file ". Now my all the xml files are blank ... I dont what happened to these file. Please anyone who know why this problem is occurring then please help me. I ll be very thankful.

Upvotes: 1

Views: 4748

Answers (2)

Heena Patidar
Heena Patidar

Reputation: 41

I was getting the same error Premature end of the file in my project after creating the spring-servlet.xml file in Eclipse IDE. Found no error syntactically in this file then just closing the project and reopening it resolves the error. Sometimes, closing and reopening the project can resolve such issues as it refreshes the IDE's internal state. It's a good practice to try this step if you encounter any unexplained errors or inconsistencies in Eclipse IDE.

Upvotes: 1

Marcin Orlowski
Marcin Orlowski

Reputation: 75645

Highlight your project name in project inspector and hit F5 to refresh. Go to Project menu and do "Clean..." and try to rebuild/open. If problem still occurs, browse to the folder your project files are in using any other application (Total Commander, Dopus etc) and inspect files yourself. Open XML files in text editor and check if they look corrupted. If they are - try to find out why this happened. Maybe your HDD is dying?

Upvotes: 2

Related Questions