“MapFragment cannot be resolved to a type” even though I am on API level 17
问题 I just started using MapFragments, and I can get the Map to show in my Activity. I just use a simple XML-layout, and it works as expected: Now, I need to get the Fragment in code, so I can start interacting with the Map. This is where I run into problems: As you can see, the MapFragment (or getFragmentManager) cannot be resolved to a type. I am targeting Android 4, API level 17: and you can also see that I am referencing the Googke Play library. Here is the Manifest, just for clarity: So, the