Android IDE (AIDE) Support Forum

Can't assign SupportMapFragment to its superclass Fragment

Why can’t I assign SupportMapFragment to its superclass Fragment?

SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map);

Error: An instance of type ‘android.support.v4.app.Fragment’ can not be of type ‘com.google.android.gms.maps.SupportMapFragment’