Skip to content Skip to sidebar Skip to footer

Error In Getting Google Maps In Android

I am Developing an Andorid Applicaiton which require Google Maps to The application. For That I am Using the same Example in Following Link. Link For Google Maps. in That I had App

Solution 1:

Your logcat clearly said

Caused by: java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 4323000 but found 0. You must have the following declaration within the element:

Try to add Google play services version using <meta-data> tag under <application> tag in your manifest.xml file like

<meta-data
 android:name="com.google.android.gms.version"
 android:value="@integer/google_play_services_version" />

Make your manifest.xml like

....<application>
 ..............
<meta-dataandroid:name="com.google.android.maps.v2.API_KEY"android:value="Key" /><meta-dataandroid:name="com.google.android.gms.version"android:value="@integer/google_play_services_version" /></application>

Solution 2:

Issue:

Caused by: java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 4323000 but found 0. You must have the following declaration within the element:

Answer :

Include Google play services version inside your manifest file.

<meta-data
        android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version" />

You can read about referencing Google play services.

Post a Comment for "Error In Getting Google Maps In Android"