Android.Views.InflateException: Binary XML file line #1: Error inflating class fragment

I'm using google maps V2, and tested on two LG devices with android 6 and when I open the map of the error below:

Android.Views.InflateException: Binary XML file line #1: Error inflating class fragment

I tested on a tablet with Android 4 and it works, I also tested on other devices with Android 6 different from the LG brand and it works as well.

The activity of the map I extend the class of Activity itself and not of Fragment and the error of the good at the time of giving a setcontextview in the layout that has this fragment of the map.

My layout file is:

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




My manifest file is correct too, since other devices work, only giving problem in LG devices with android 6.

Posts

  • ajoharajohar INMember ✭✭

    Try changing fragment to SupportMapFragment, it may work (may). Also, your xml code is not visible in your question, can't see what you're doing there.

Sign In or Register to comment.