Android Map v2 Program Crashes at start

I’ve searched for a week and tested all the solutions said, but nonestrong text worked! I’ve tried every thing said in:

Google Maps Android API v2 - Getting Started

and lot’s of others SO solutions…

I tried to test on my Mobile Phone but it crashes in start.

Main Activity:


package com.google.balakharekechi;

import android.app.Activity;
import android.os.Bundle;

public class MainActivity extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
}    

activity_main.xml


<?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.MapFragment"/>

and the Manifest:


<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.google.balakharekechi"
    android:versionCode="1"
    android:versionName="1.0" >

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

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

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

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity
        android:name=".MainActivity"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
    <meta-data
        android:name="com.google.android.maps.v2.API_KEY"
        android:value="AIzaSyB_Exrzd7O0rzadCpWMvk6hdz5QUJx9DTk" />
</application>

there is no error…

i’ve tried with google-play-servies 6171000 and 5077000 same problem.

tried extends FragmentActivity also and the same problem…

the Log Cat with a Google Nexus 4-4.4.4 simulation on GenyMotion:

01-12 15:30:34.240: D/libEGL(1869): loaded /system/lib/egl/libEGL_genymotion.so
01-12 15:30:34.244: D/(1869): HostConnection::get() New Host Connection established 0xb8ee21c0, tid 1869
01-12 15:30:34.268: D/libEGL(1869): loaded /system/lib/egl/libGLESv1_CM_genymotion.so
01-12 15:30:34.268: D/libEGL(1869): loaded /system/lib/egl/libGLESv2_genymotion.so
01-12 15:30:34.340: W/EGL_genymotion(1869): eglSurfaceAttrib not implemented
01-12 15:30:34.344: E/OpenGLRenderer(1869): Getting MAX_TEXTURE_SIZE from GradienCache
01-12 15:30:34.344: E/OpenGLRenderer(1869): MAX_TEXTURE_SIZE: 16384
01-12 15:30:34.360: E/OpenGLRenderer(1869): Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
01-12 15:30:34.364: E/OpenGLRenderer(1869): MAX_TEXTURE_SIZE: 16384
01-12 15:30:34.364: D/OpenGLRenderer(1869): Enabling debug mode 0
01-12 15:30:37.400: W/GooglePlayServicesUtil(1869): Google Play services out of date. Requires 5077000 but found 2012110
01-12 15:30:37.408: W/GooglePlayServicesUtil(1869): Google Play services out of date. Requires 5077000 but found 2012110

and on my real mobile phone, crashes after some seconds…

plz help me :frowning: