How to fix android manifest.xml naming conflict?

Had to add to the manifest header:

xmlns:tools="http://schemas.android.com/tools"

For example:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.yourpackage"
    xmlns:tools="http://schemas.android.com/tools">

Then in the element:

'tools:replace="android:label"'

The answer from Kaizer Sozay in this thread helped me a lot while I was looking to set android:allowBackup in my NativeScript project.

I ended up with the complete file like this:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">
    <application tools:replace="android:allowBackup" android:allowBackup="true">
    </application>
</manifest>