Adam Katz
Adam Katz

Reputation: 6962

Android tools replace issue

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.

Upvotes: 0

Views: 232

Answers (1)

Ricardo
Ricardo

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

Related Questions