0

While importing the project in Android Studio I am getting an error saying

Invalid XML file: C:\XXXXXXX\AndroidManifest.xml: Content is not allowed in prolog.

How to resolve this? Please help me regarding this.

TimoStaudinger
  • 41,396
  • 16
  • 88
  • 94

2 Answers2

0

Check AndroidManifest.xml file, 2 problems might occur :

  1. your header <?xml version='1.0' encoding='utf-8'?> is incorrect
  2. there is a string right before it : afaf<?xml version .....
flafoux
  • 2,080
  • 1
  • 12
  • 13
0

This error message is always caused by the invalid XML content in the beginning element.

More info here

Jorge Casariego
  • 21,948
  • 6
  • 90
  • 97