Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by user1875940
, 1 year ago
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)
via Stack Overflow by Harshad07
, 2 years ago
Binary XML file line #24:Error inflating class fragment at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625) at android.app.ActivityThread.performLaunchActivity (Activity Thread .java: 1651)
android.view.InflateException: Binary XML file line #2: Errorinflating 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 moreCaused by: java.lang.ClassCastException: com.google.android.gms.maps.MapFragmentcannot 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