标签: android
这行代码显示错误 mMapFragment =((SupportMapFragment)getSupportFragmentManager().findFragmentById(R.id.map)); googleMap = mMapFragment.getMapAsync(this);
mMapFragment =((SupportMapFragment)getSupportFragmentManager().findFragmentById(R.id.map)); googleMap = mMapFragment.getMapAsync(this);
答案 0 :(得分:0)
试试这个,
private GoogleMap mMap; private SupportMapFragment mMapFragment; mMapFragment = ((SupportMapFragment)getSupportFragmentManager().findFragmentById(R.id.mapFragment)); mMap = mMapFragment.getMap();
这可能有助于你
编辑1
类似的答案请参考here和here