Make sure you have followed all the steps in the below link
https://developers.google.com/maps/documentation/android/start
Add the below in manifest file
<permission
android:name="com.example.mapviewdemo.permission.MAPS_RECEIVE"
android:protectionLevel="signature"/>
<uses-permission android:name="com.example.mapviewdemo.permission.MAPS_RECEIVE"/>
http://developer.android.com/reference/com/google/android/gms/maps/MapFragment.html
Quoting from the above doc
Use this MapFragment
only if you are targeting API 12 and above
. Otherwise, use SupportMapFragment
.
Your min sdk is 8. You should use Support Fragment.
<fragment
class="com.google.android.gms.maps.SupportMapFragment"
android:id="@+id/map"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
Your activity must extend FragmentActivity
SupportMapFragment fm = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map);
GoogleMap mMap = fm.getMap();
Make sure you have added support library
Also make sure you imported the below
import android.support.v4.app.FragmentActivity;
import com.google.android.gms.maps.SupportMapFragment;