Reputation: 141
I am coding Google maps v2 into my app but have run into an error. I have already included the API key in the manifest.
Whenever I click on "Map" from the list on the menu for my app the application crashes: Below is the errors shown in LogCat:
E/AndroidRuntime(2041): FATAL EXCEPTION: main
E/AndroidRuntime(2041): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.anonymous.anonymous1/com.anonymous.anonymous1.Activity_Map}: android.view.InflateException: Binary XML file line #3: Error inflating class fragment
This is the relevant Java and xml file: http://pastebin.com/LkjrHkPy
Does anyone know how to resolve this error so i can see the map on my application? I think it may have something to do with the xml containing a fragment.
Thank you for your time!
Upvotes: 1
Views: 1053
Reputation: 1006644
Based upon the ClassNotFoundException
, you need to add the Android library project for the Google Play Services to your app: http://developer.android.com/google/play-services/setup.html
Upvotes: 2