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
  • 38,697
  • 15
  • 86
  • 91

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,020
  • 1
  • 11
  • 13
0

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

More info here

Jorge Casariego
  • 21,461
  • 6
  • 86
  • 97