title: Google maps api v2. Failed to Load Map. Could not connect to google servers
body: <p>I an getting this error when I run the application on the real device. </p>
  
  <p>Main_Activity.java,</p>
  
  <pre><code>protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      int chkGooglePlayServices = GooglePlayServicesUtil
              .isGooglePlayServicesAvailable(Context);
      if (chkGooglePlayServices != ConnectionResult.SUCCESS) {
          GooglePlayServicesUtil.getErrorDialog(chkGooglePlayServices,
                  (Activity) Context, 1122).show();
      } else {
          SupportMapFragment sfm = (SupportMapFragment) getSupportFragmentManager()
                  .findFragmentById(R.id.map);
          mMap = sfm.getMap();
  
          mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);
          lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
          Criteria criteria = new Criteria();
          criteria.setAccuracy(Criteria.ACCURACY_FINE);
          // Location Update
          LocationListener listener = new LocationListener() {
              @Override
              public void onLocationChanged(Location location) {
                  mMap.clear();
                  final CameraPosition cameraPosition = new CameraPosition.Builder()
                          .target(new LatLng(location.getLatitude(), location
                                  .getLongitude())).zoom(14.0f).build();
                  final CameraUpdate cameraUpdate = CameraUpdateFactory
                          .newCameraPosition(cameraPosition);
                  mMap.moveCamera(cameraUpdate);
              }
  
              AlertDialog.Builder dialog = new AlertDialog.Builder(Context)
                      .setTitle(R.string.RemindEnableGps);
              AlertDialog alert = dialog.create();
  
              @Override
              public void onProviderDisabled(String provider) {
                  alert.setCanceledOnTouchOutside(false);
                  alert.setCancelable(true);
                  alert.show();
  
              }
  
              @Override
              public void onProviderEnabled(String provider) {
                  alert.dismiss();
  
              }
  
              @Override
              public void onStatusChanged(String provider, int status,
                      Bundle extras) {
              }
          };
  
          lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0,
                  listener);
          final Location mLocation = lm
                  .getLastKnownLocation(LocationManager.GPS_PROVIDER);
  
          /*final CameraPosition cameraPosition = new CameraPosition.Builder()
                  .target(new LatLng(mLocation.getLatitude(), mLocation
                          .getLongitude())).zoom(14.0f).build();
          final CameraUpdate cameraUpdate = CameraUpdateFactory
                  .newCameraPosition(cameraPosition);
          mMap.moveCamera(cameraUpdate);*/
      }
  
  }
  </code></pre>
  
  <p>This is my mainifest file,</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.example.findproperty"
  android:versionCode="1"
  android:versionName="1.0" &gt;
  
  &lt;uses-sdk
      android:minSdkVersion="8"
      android:targetSdkVersion="10" /&gt;
  
  &lt;permission
      android:name="com.example.findproperty.permission.MAPS_RECEIVE"
      android:protectionLevel="signature" /&gt;
  
  &lt;uses-permission android:name="com.example.findproperty.permission.MAPS_RECEIVE" /&gt;
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  &lt;uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
  
  &lt;uses-feature
      android:glEsVersion="0x00020000"
      android:required="true" /&gt;
  
  &lt;application
      android:allowBackup="true"
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" &gt;
  
      &lt;activity
          android:name="com.example.findproperty.MainActivity"
          android:label="@string/app_name" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;uses-library android:name="com.google.android.maps" /&gt;
  
      &lt;meta-data
          android:name="com.google.android.maps.v2.API_KEY"
          android:value="Given my signed key" /&gt;
  
     &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>activity_main.xml,</p>
  
  <pre><code> &lt;?xml version="1.0"?&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;fragment 
      android:id="@+id/map"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:layout_marginBottom="30dp"
      android:layout_marginLeft="30dp"
      android:layout_marginRight="30dp"
      android:layout_marginTop="60dp"
      class="com.google.android.gms.maps.SupportMapFragment"
      android:clickable="true" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>I have imported Google play libraries required for the app. Map object is not null. But in the logcat it displays "Google maps Api v2 Failed to load map. Could not connect to google servers"</p>
  
  <p>What I am missing? Please anyone help!! This is killing me!!</p>