When I first working on with MapActivity, I got above error. I kept press Ctrl+Shift+O. However, the type just wouldn’t resolve. Finally I found the answer on the Internet. You need to change the build target to “Google APIâ€
Right click on the project. Go to “Propertiesâ€. Change the “Build Target†from “Android 1.x to Google APIs 1.xâ€
