Skip to content Skip to sidebar Skip to footer

Getting Error While Starting Google Map V2

I've been seeing this error for a whole day: 06-18 15:40:14.343: E/AndroidRuntime(11830): FATAL EXCEPTION: main 06-18 15:40:14.343: E/AndroidRuntime(11830): java.lang.RuntimeEx

Solution 1:

Your locgcat 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" />

Solution 2:

Where I got confused was, there needed two meta data.

 One with api key and another with google service.

Another place I got confused was, I didn't know what

android:value="@integer/google_play_services_version" mean.

So you should simply copy paste the line. And only try to under stand later


Post a Comment for "Getting Error While Starting Google Map V2"