After installing a new library in my android project, I get the following error:
/android/app/src/debug/AndroidManifest.xml Error:
Attribute application@label 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.
After some research, I found that the newly installed library also has a application@label
attribute, so all you have to do is modify your AndroidManifest.xml
file by adding the following two lines of code:
xmlns:tools="http://schemas.android.com/tools"
to the manifest tag<manifest
xmlns:tools="http://schemas.android.com/tools">
...
tools:replace="android:label"
to the application tag...
<application
tools:replace="android:label">