I had the same problem. I only closed AndroidManifest and opened it again and so I edited acording to which the error log showed.
This problem happens because (for some reason) you have debug/AndroidManifest.xml opened instead of main/AndroidManifest.xml. Just close the debug one and open the main one.