nativescript-google-maps-sdk: Nativescript 6.0 error maps arr

Missing ‘package’ key attribute on element package at [com.google.android.gms:play-services-maps:17.0.1]

Solutions remove the following line from your own

<queries>
    <package android:name="com.google.android.apps.maps" />
</queries>

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 3
  • Comments: 16

Most upvoted comments

@FranciZ I managed to get it working by downgrading play-services-maps back to 17.0.0 in node_modules/nativescript-google-maps-sdk/platforms/android/include.gradle

replace ‘+’ with ‘17.0.0’

I’m getting a similar issue with the errors pointing that line in the manifest file .

Error :

Missing ‘package’ key attribute on element package at [com.google.android.gms:play-services-maps:17.0.1] AndroidManifest.xml:33:9-64 [com.google.android.gms:play-services-maps:17.0.1] /home/justin/.gradle/caches/transforms-2/files-2.1/49353dd520d07e2a59c4a41eb835c2ae/play-services-maps-17.0.1/AndroidManifest.xml Error: Validation failed, exiting

Missing ‘package’ key attribute on element package at [com.google.android.gms:play-services-maps:17.0.1]

Solutions remove the following line from your own

<queries>
    <package android:name="com.google.android.apps.maps" />
</queries>

Hi, Where should that be removed from? I know there’s a cached file that gets generated but it still causes the project build to fail since it gets overwritten again every time the project builds.

@FranciZ I managed to get it working by downgrading play-services-maps back to 17.0.0 in node_modules/nativescript-google-maps-sdk/platforms/android/include.gradle

replace ‘+’ with ‘17.0.0’

This does seem to fix the app’s building issue; however, everything within the app is still broken, I’ve tried going as far back as version 15.0.1. It just bugs out all the styling and the DOM logic as well.

Also breaks our builds, @kefahB or @dapriett any way you can take a look?