title: Error: Xml declaration should proceed all document content (auto generated java code in colors.xml)
body: <blockquote>
    <p>Xml declaration should proceed all document content</p>
  </blockquote>
  
  <p>Suddenly I am getting this error in my android project and i have not made any changes , but yet this popped up ,with some auto generated java code.</p>
  
  <p><a href="https://i.stack.imgur.com/MdvHg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MdvHg.png" alt="enter image description here"></a></p>
  
  <p>have tried commenting the above , but thats not working so 
  tried adding the following code to make it correct </p>
  
  <pre><code>&lt;resources&gt;
      &lt;color name="colorPrimary"&gt;#3F51B5&lt;/color&gt;
      &lt;color name="colorPrimaryDark"&gt;#303F9F&lt;/color&gt;
      &lt;color name="colorAccent"&gt;#FF4081&lt;/color&gt;
      &lt;color name="your_color"&gt;#FFFFFF&lt;/color&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>still nothing happened.</p>
  
  <p><a href="https://i.stack.imgur.com/jKX2n.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jKX2n.png" alt="this is the error"></a></p>