1

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://schemas.android.com/apk/res/android"
    xmlns:map="http://schemas.android.com/apk/res-auto"
    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.

4
  • 1
    Maybe this will be helpful.
    – Blo
    Sep 19, 2014 at 15:08
  • Tomorrow I will try, today I haven't time anymore :/ I'll reply to you here :) Thank you so much !! @Fllo Sep 19, 2014 at 15:58
  • @Fllo maybe your code works but now I have other problems that make the app crash :( this is making me crazy :/ Sep 22, 2014 at 9:50
  • 1
    You should edit your question and post the logcat where you have the error. It will help us to figure it out what is wrong in your code.
    – Blo
    Sep 22, 2014 at 10:45

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.