getMapAsync() dans le Fragment

J'ai de la difficulté à la mise en œuvre de Google Map dans le Fragment.

C'est ma partie de mon fragment de classe:

public class FragmentStoreFinderMap extends Fragment implements OnMapReadyCallback {

//Google Map
private GoogleMap googleMap;
private int i;
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

        googleMap = ((SupportMapFragment)getActivity().getSupportFragmentManager().findFragmentById(
              R.id.map)).getMapAsync(this);

J'obtiens une erreur dans getMapAsync(ce). J'ai dit de type Incompatible.

il dit:

requis: com.google.android.gms.carte.GoogleMap

trouvé: void

BTW voici mon xml:

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

</LinearLayout>

OriginalL'auteur RussVirtuoso | 2016-02-19