I had this problem and solved it by the following 2 steps:
1) Put the following line in the application (important) element of AndroidManifest.xml file.
<uses-library android:name="com.google.android.maps" />
2) extend MapActivity instead of Activity.
enjoy!
Related Contents:
- Rotate MapView in Android
- How to draw a path on a map using kml file?
- This app won’t run unless you update Google Play Services (via Bazaar)
- Drawing a line/path on Google Maps
- GoogleService failed to initialize
- How to use multiple MapActivities/MapViews per Android application/process
- One Google Maps key for all developers?
- Android: automatically choose debug/release Maps api key?
- How to handle onTouch event for map in Google Map API v2?
- How do you draw text with a border on a MapView in Android?
- Android: How do I set the zoom level of map view to 1 km radius around my current location?
- How to animate marker in android map api V2?
- Map View draw directions using google Directions API – decoding polylines
- How can I show current location on a Google Map on Android Marshmallow?
- How can I find the latitude and longitude from address?
- Why retrieving Google Directions for Android using KML data is not working anymore? [duplicate]
- How to draw interactive Polyline on route google maps v2 android
- Google Maps Android API v2 – detect touch on map
- Google map signed api key errors in Android
- Couldn’t get connection factory client
- Published App on Play Store can’t communicate with Google Maps API and Facebook API
- How to draw free hand polygon in Google map V2 in Android?
- I’m trying to search nearby places such as banks, restaurants, ATMs inside the drawn area on google maps in android
- Get altitude by longitude and latitude in Android
- Is it possible to create turn-by-turn GPS navigation app on Android/iOS using Google Maps?
- Getting Latitude and longitude in 30 seconds
- Initialize MapFragment programmatically with Maps API v2
- How to show multiple markers on MapFragment in Google Map API v2?
- java.lang.NoClassDefFoundError:failed resolution of :Lorg/apache/http/ProtocolVersion
- The import com.google.android.gms cannot be resolved
- android Maps API v2 with custom markers
- how to get current location in google map android
- CMUSphinx PocketSphinx – Recognize all (or large amount) of words
- How can I create an Android application in Android Studio that uses the Google Maps Api v2?
- How to get My Location changed event with Google Maps android API v2?
- How do I show a marker in Maps launched by geo URI Intent?
- Replace default Android Maps API v2 Change MyLocation icon
- MapView rendering with tiles missing with an “x” in the center
- Android Google Maps API V2 Zoom to Current Location
- Google Play Services v13 error meta-data in AndroidManifest
- How to draw road directions between two geocodes in android google map v2?
- Error non-default constructors in fragments
- Show Current Location inside Google Map Fragment
- Android MapView -setting zoom automatically until all ItemizedOverlay’s are visible
- Ensure that the “Google Maps Android API v2” is enabled. I am getting this error when I try to Implement Google Maps
- Inflate a view in a background thread
- How does one implement drag and drop for Android marker?
- android MapView in Fragment
- Add an Image from url into custom InfoWindow google maps v2
- Google Maps v2 – set both my location and zoom in