Gmaps in a fragment Api 2 Android app



I'm developing an app with a fragment that contains a map (from google not Openstreet). But I'm at really beginning and I have a problem in the xml of the fragment. Eclipse return me this error:


"Fatal error: main Caused by: android.view.InflateException:Binary XML file line #4: Error inflating class com.google.android.gms.maps.MapView"


Below I paste the fragment_geolocalizzazione.xml :



<?xml version="1.0" encoding="utf-8"?>


<com.google.android.gms.maps.MapView
xmlns:android="http://ift.tt/nIICcg"
xmlns:map="http://ift.tt/GEGVYd"
android:id="@+id/mapView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clickable="true"
android:background="#00000000" >

</com.google.android.gms.maps.MapView>


I inflate this layout but it returns error on this ("com.google.android.gms.maps.MapView") and it return null when the main activity call it.


No comments:

Post a Comment