Android Google Map V2 - "unfortunately App has stopped" <p>I'm trying to display google map on my android app when user click on a button. when I click the button the app stops.No error in the code. I believe I've done everything right 1-I got the API KEY</p> <p>2-I added the Google_Play_Services_lib.jar to the dependencies folder</p> <p>3-added extra support tool</p> <p>4-included the permissions,my key to the manifest</p> <p>5-added fragment to my xml layout fie for the map</p> <p>please help I feel like I've read and watched every tutorial there is...nothing worked!</p> <p>My Log: </p> <pre><code>03-10 20:27:10.057: I/Process(17287): Sending signal. PID: 17287 SIG: 9 03-10 20:27:15.072: D/libEGL(17688): loaded /vendor/lib/egl/libEGL_adreno.so 03-10 20:27:15.072: D/libEGL(17688): loaded /vendor/lib/egl/libGLESv1_CM_adreno.so 03-10 20:27:15.082: D/libEGL(17688): loaded /vendor/lib/egl/libGLESv2_adreno.so 03-10 20:27:15.082: I/Adreno-EGL(17688): &lt;qeglDrvAPI_eglInitialize:316&gt;: EGL 1.4 QUALCOMM build: (CL4169980) 03-10 20:27:15.082: I/Adreno-EGL(17688): OpenGL ES Shader Compiler Version: 17.01.10.SPL 03-10 20:27:15.082: I/Adreno-EGL(17688): Build Date: 09/26/13 Thu 03-10 20:27:15.082: I/Adreno-EGL(17688): Local Branch: 03-10 20:27:15.082: I/Adreno-EGL(17688): Remote Branch: 03-10 20:27:15.082: I/Adreno-EGL(17688): Local Patches: 03-10 20:27:15.082: I/Adreno-EGL(17688): Reconstruct Branch: 03-10 20:27:15.122: D/OpenGLRenderer(17688): Enabling debug mode 0 03-10 20:27:16.683: D/AndroidRuntime(17688): Shutting down VM 03-10 20:27:16.683: W/dalvikvm(17688): threadid=1: thread exiting with uncaught exception (group=0x41931898) 03-10 20:27:16.693: E/AndroidRuntime(17688): FATAL EXCEPTION: main 03-10 20:27:16.693: E/AndroidRuntime(17688): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.newandroid/com.example.newandroid.Mymap}: android.view.InflateException: Binary XML file line #7: Error inflating class fragment 03-10 20:27:16.693: E/AndroidRuntime(17688): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2295) 03-10 20:27:16.693: E/AndroidRuntime(17688): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2349) 03-10 20:27:16.693: E/AndroidRuntime(17688): at android.app.ActivityThread.access$700(ActivityThread.java:159) </code></pre> <p>My code for Mymap activity p</p> <pre><code>ackage com.example.newandroid; import android.os.Bundle; //import android.app.Activity; import android.support.v4.app.FragmentActivity; public class Mymap extends FragmentActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_mymap); } } </code></pre> <p>My layout </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" &gt; &lt;fragment android:name="com.google.android.gms.maps.SupportMapFragment" xmlns:map="http://schemas.android.com/apk/res-auto" android:id="@+id/map" android:layout_width="match_parent" android:layout_height="match_parent" /&gt; &lt;/LinearLayout&gt; </code></pre> <p>Manifest</p> <pre><code> &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.newandroid" android:versionCode="1" android:versionName="1.0" &gt; &lt;permission android:name="com.example.newandroid.permission.MAPS_RECEIVE" android:protectionLevel="signature" /&gt; &lt;uses-permission android:name="com.example.newandroid.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="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-sdk android:minSdkVersion="8" android:targetSdkVersion="17" /&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="MainActivity"&gt; 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;activity android:name="com.example.newandroid.Mymap" android:label="@string/title_activity_mymap" android:parentActivityName="com.example.newandroid.MainActivity" &gt; &lt;meta-data android:name="android.support.PARENT_ACTIVITY" android:value="com.example.newandroid.MainActivity" /&gt; &lt;/activity&gt; &lt;meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyAq44a-wWB4W6muJJqZ1DMH-livYscbiyk"/&gt; &lt;/application&gt; &lt;/manifest&gt; </code></pre> <p>this is the MainActivity where the button is ,when clicked it should start Mymap activity.this is Mainactivity code</p> <pre><code>import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; public class MainActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); // TODO Auto-generated method stub } public void view_map(View view) { Intent intent = new Intent(this, Mymap.class); startActivity(intent); // Do something in response to button } } </code></pre>