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)


Solutions on the web5337

Solution icon of stackoverflow
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)

Solution icon of stackoverflow
Binary XML file line #23: Error inflating class fragment 04-06 11:45:03.731: E/AndroidRuntime(707): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956) 04-06 11:45:03.731: E

Solution icon of stackoverflow
Binary XML file line #8: Binary XML file line #2: Error inflating class <unknown> 12-05 00:23:04.782 11694-11694/com.dev.jashan.myapplication E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:539) 12-05 00:23:04.782

Solution icon of web
via androidworld.nl by Unknown author, 1 year ago
Binary XML file line #54: Error inflating class <unknown> 03-10 12:53:20.056 E/AndroidRuntime( 2166): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)

Solution icon of stackoverflow
via Stack Overflow by John Smith
, 1 year ago
Binary XML file line #2: Error inflating class android.support.design.widget.CoordinatorLayout com.example.smith.frada E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:698) com.example.smith.frada E

Solution icon of stackoverflow
via Stack Overflow by poojagupta
, 1 year ago
Binary XML file line #6: Error inflating class fragment 02-20 10:53:15.706: E/AndroidRuntime(23385): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180) 02-20 10:53:15.706: E/AndroidRuntime(23385): at

Solution icon of stackoverflow
Binary XML file line #14: Error inflating class <unknown>** 12-08 16:29:32.018 4081-4081/? E/AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:633) 12-08 16:29:32.018 4081-4081/? E/AndroidRuntime: at

Solution icon of stackoverflow
via Stack Overflow by JavaGuy
, 1 year ago
Binary XML file line #44: Error inflating class fragment 09-21 14:52:12.466: E/AndroidRuntime(336): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647) 09-21 14:52:12.466: E/AndroidRuntime(336): at

Solution icon of web
Binary XML file line #29: Error inflating class android.widget.TextView at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2669) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2685)

Solution icon of stackoverflow
via Stack Overflow by Tom
, 8 months ago
Binary XML file line #9: Error inflating class fragment 03-09 12:06:56.850: E/AndroidRuntime(891):

Stack trace

  • 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

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago