Search code examples
androidmapsgenymotion

Google maps doesn't load prop


i have followed the google tutorial for using google maps and every thing is fine except that the map doesn't load prob on genymotion emulator

this is my mainfest

    <uses-feature
    android:glEsVersion="0x00020000"
    android:required="true"/>


    <uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="21" />

    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <!-- The following two permissions are not required to use
    Google Maps Android API v2, but are recommended. -->
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

    <application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <meta-data
    android:name="com.google.android.gms.version"
    android:value="@integer/google_play_services_version" />
    <meta-data
    android:name="com.google.android.geo.API_KEY"
    android:value="*************************************"/>
    <activity

and this is my layout

<?xml version="1.0" encoding="utf-8"?>
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/map"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:name="com.google.android.gms.maps.SupportMapFragment"/>

please respond asap !!!


Solution

  • If you are under developing your project, the API key which you are currently using must be generated from your PC's SHA key.

    If it is fine, there could problem in your Play services. So, the Google Play Services must be in upto date.

    Thanks!!