Reputation: 6962
I have downloaded a library that his it's own manifest.xml file which is causing me problems.
There is a line in the library manifest page that reads as follows
android:name=".controllers.NetworkController"
If I delete this line my program runs but I do not know what this line is for so I would prefer not to delete it.
I understand that I am supposed to add a tools replace to fix this issue, from my understanding the tools replace is supposed to go into my app's manifest page.
So I tried adding this line to the top of the page
xmlns:tools="http://schemas.android.com/tools"
and then try adding a tools:replace command to the section but I am unsure of what to put there I tried a few things but none of them worked.
The error I received is
FAILURE: Build failed with an exception.
Manifest merger failed : Attribute application@name value=(com.app.appapp.utility.appfile) from AndroidManifest.xml:37:9-43 is also present at [appfile:adyenpaysdk:unspecified] AndroidManifest.xml:12:9-75 value=(adyen.com.adyenpaysdk.controllers.NetworkController). Suggestion: add 'tools:replace="android:name"' to element at AndroidManifest.xml:35:5-215:19 to override.
Upvotes: 0
Views: 232
Reputation: 9656
In you manifest, inside the application section (where you have you app name, icon, label, theme), instead of tools:replace, add:
tools:node="replace"
For your google maps issue you also need to add to your manifest, inside the application section as well the following
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="YourGeneratedKey" />
Upvotes: 2