fManager.getFragmentById() returns null
问题 I asked a question like this one the other day... this. I marked it as resolved, because the mistake was that isPlayServicesAvailable() returned false, because I had not the up to date Google Play Services. I have them now...but still NPE. The code: GoogleMap map; FragmentManager fmanager = getSupportFragmentManager(); Fragment fragment = fmanager.findFragmentById(R.id.map);//after this, fragment is null SupportMapFragment supportmapfragment = (SupportMapFragment)fragment; map