2

Error:Execution failed for task ':app:processDebugManifest'.

com.android.manifmerger.ManifestMerger2$MergeFailureException: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.

Keivan Esbati
  • 3,376
  • 1
  • 22
  • 36

3 Answers3

8

Try adding this line to your manifest file.

<manifest xmlns:tools="http://schemas.android.com/tools">

ASN
  • 1,655
  • 4
  • 24
  • 52
3

I ran into this issue as well. The error is from ManifestMerger and it made me believe it has something to do with my manifest file and that took me on a wrong path. This error can also happen in case of an invalid XML file in your resources. In my case it was a layout file that got left over from a merge conflict with nothing in it (an empty layout file) which in turn caused the issue. it also cloud be any other xml file so I would suggest opening your xml resources one at a time and see if there is any error in them (you will get the lint error when opening the file)

Hope this helps.

Kayvan N
  • 8,108
  • 6
  • 29
  • 38
2

Check you AndroidManifest.xml file, Maybe you can find error there. If no problem, please check this in manifest tag like this way.

<?xml version="1.0" encoding="utf-8"?>
<manifest 
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools">
     ...........................................
</manifest>
HardCoding
  • 51
  • 3