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 web

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 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 web
via google.com by Unknown author, 1 year ago
Binary XML file line #38: Error inflating class android.widget.GridView             at android.view.LayoutInflater.createView(LayoutInflater.java:613)             at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView

Solution icon of web
Binary XML file line #16: Error inflating class android.widget.ListView             at android.view.LayoutInflater.createView(LayoutInflater.java:613)             at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView

Solution icon of web
via grokbase.com by Unknown author, 1 year ago
Binary XML file line #24: Error inflating class android.widget.ExpandableListView at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)

Solution icon of googlegroups
Binary XML file line #7: Error inflating > class <unknown> at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2658)

Solution icon of stackoverflow
via Stack Overflow by Jesse
, 1 year ago
Binary XML file line #13: Error inflating class fragmentat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)

Solution icon of web
via crosswalk-project.org by Unknown author, 1 year ago
Binary XML file line #28: Error inflating class org.xwalk.core.XWalkView at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2245)

Solution icon of web
Binary XML file line #24: Error inflating class android.widget.ExpandableListView at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)

Solution icon of web
via mail-archive.com by Unknown author, 1 year ago
Binary XML file line #28: Error inflating class org.xwalk.core.XWalkView at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2245)

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