android.view.InflateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Google Maps APIV2 android
    via Stack Overflow by Hrishikesh Sardar
    ,
  • Fragment and Activity Issues
    via Stack Overflow by Matthew Pigram
    ,
  • Inflate Error on Google Maps v2
    via Stack Overflow by Onur
    ,
  • Google Maps Fragment doesn't load
    via Stack Overflow by Adir Rahamim
    ,
    • android.view.InflateException: Binary XML file line #2: Error inflating class fragment 12-29 23:45:32.605: E/AndroidRuntime(9437): android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1968) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1993) at android.app.ActivityThread.access$600(ActivityThread.java:127) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1159) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4507) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557) at dalvik.system.NativeStart.main(Native Method) Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class fragment 12-29 at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:697) at android.view.LayoutInflater.inflate(LayoutInflater.java:466) at android.view.LayoutInflater.inflate(LayoutInflater.java:396) at android.view.LayoutInflater.inflate(LayoutInflater.java:352) at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:271) at android.app.Activity.setContentView(Activity.java:1835) at com.example.test_googlemap.MainActivity.onCreate(MainActivity.java:11) at android.app.Activity.performCreate(Activity.java:4465) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1052) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1932) ... 11 more Caused by: java.lang.ClassCastException: com.google.android.gms.maps.MapFragment cannot be cast to android.support.v4.app.Fragment 12-29 23:45:32.605: at android.support.v4.app.Fragment.instantiate(Fragment.java:394) at android.support.v4.app.Fragment.instantiate(Fragment.java:369) at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:272) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:669) ... 20 more

    Users with the same issue

    Unknown visitor1 times, last one,