After installing a new library in my android project, I get the following error:
/android/app/src/debug/AndroidManifest.xml Error:
Attribute [email protected] value=(Compassion) from (unknown)
is also present at [com.github.master] AndroidManifest.xml:15:9-41 value=(@string/app_name).
Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:6:4-36:19 to override.
FAILURE: Build failed with an exception.
Solution 1: Ged Flod
After some research, I found that the newly installed library also has a code>[email protected]</code attribute, so all you have to do is modify your AndroidManifest.xml
file by adding the following two lines of code:
- Add
xmlns:tools="http://schemas.android.com/tools"
to the manifest tag
<manifest
xmlns:tools="http://schemas.android.com/tools">
...
- Add
tools:replace="android:label"
to the application tag
...
<application
tools:replace="android:label">
Solution 2: Dev Salman khan
Go to main AndroidManifest.xml and paste these two lines below
In manifest tag
xmlns:tools="http://schemas.android.com/tools"
And in the Application tag
tools:replace="android:label"
This work for me