KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying my hand and Android Application Development. I'm currently using Eclipse (I can't remember the version, whatever the newest is). I've crossed a bridge where I just can't seem to grasp what I'm doing wrong. I'm attempting to use the Google Maps V2 API. I've been through several documents and tried several techniques, all of which lead to the same error: Android.view.Inflate Exception: Binary XML file line #2: Error inflating class fragment I've been pounding my face into the keys for 2 days straight trying to grasp what I'm doing wrong here. Things I've done: Started with a blank activity. Project -> Properties -> Android -> Project Build Target is Google APIs - 4.2 - API 17 - I've tried every other option as well (as long as above version 3.0, found it documented Added the google-play-services_lib to my Package Explorer. I indicated that the google-play-services_lib was indeed a library . Project -> Properties -> Android -> Library -> Add -> and I choose the location to the google-play-services_lib. Included android-support-v4.jar as a dependency of my project. I've tried so many different answers from questions similar to mine, but to no avail. :( I can usually figure these things out, but maybe I'm just too overloaded. My package explorer tree in eclipse looks like google-play-services_lib Svma Here's the code:> activity_main.xml <?xml version="1.0" encoding="utf-8"?> <fragment xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/map" android:layout_width="match_parent" android:layout_height="match_parent" class="com.google.android.gms.maps.SupportMapFragment"/> Manifest <?xml version="1.0" encoding="utf-8"?> &
Tags (comma-separated)
Save Edits
Cancel