Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict when using google maps sdk plugin #5

Open
yencolon opened this issue Mar 24, 2018 · 1 comment
Open

Conflict when using google maps sdk plugin #5

yencolon opened this issue Mar 24, 2018 · 1 comment

Comments

@yencolon
Copy link

Hi, recently i tried to use this plugin in one of my projects, but when i installed and try to build, a merge conflit error with the com.google.android.geo.API_KEY, I'm also using google maps sdk plugin.. any advise?

Manifest merger failed : Attribute meta-data#com.google.android.geo.API_KEY@value value=(@string/nativescript_google_maps_api_key) from AndroidManifest.xml:9:13-69
is also present at AndroidManifest.xml:9:13-30 value={api key}.
Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:7:9-9:72 to override.

I tried to use the tools:replace, but i guess i'm using it in the wrong way

@dilarion
Copy link

dilarion commented Apr 3, 2018

Hi,
This is because the api_key conflicted with google maps sdk plugin. My solution is remove one of the api key (google maps sdk plugin api key). Edit the plugin's Android Manifest (not application Manifest) at directory node_modules/nativescript-google-maps-sdk/platforms/android/AndroidManifest.xml

remove <meta-data .... /> tag inside the <application></application>
and then rebuild the app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants