Mohammad Seyedmahmudi
Mohammad Seyedmahmudi

Reputation: 157

Build Error Exception while loading build-info.xml

When I want to run my project it occurs with some errors,

The error is : Exception while loading build-info.xml : org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.

Anybody knows the problem ?!

Upvotes: 3

Views: 2077

Answers (2)

Mohammad Seyedmahmudi
Mohammad Seyedmahmudi

Reputation: 157

I found the solution!

In Android Studio, go to : >> Build >> Rebuild Project

and then run the project again.

This works for me, I hope it works for others who have the same issue.

Upvotes: 9

Anjali
Anjali

Reputation: 187

This can be cause by presence of white space before declaring XML often whitespace are ignored most people don't know that it can cause error. You can share your XML code which will help me to identify where is your error is .

Upvotes: 1

Related Questions