Google maps / google play services


#1

Hi developers, I’m having an issue when trying to deploy my Ionic app to my Genymotion android emulator. The error I get after successfully building the application and then running cordova run android is java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 4323000 but found 4323030. You must have the following declaration within the <application> element: <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />

My simple code in my index.html is

<script src="https://maps.googleapis.com/maps/api/js?v=3&key=XXXXXXXXXXX&sensor=true"></script>

<div id="map-canvas" class="event-map"></div>

It works just fine in the iOS emulator, I just can’t get it to run on android. Thanks for any help / suggestions you could provide!


#2

You need to edit your AndroidManifest.xml to include the google_play_services_version metadata. Here is a quick overview of how to that.