android.view.InflateException: Binary XML file line #2: Error inflating class fragment

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 boardgamegeek.com by Unknown author, 2 years ago
Binary XML file line #2: Error inflating class fragment
via Stack Overflow by James Harland
, 2 years ago
Binary XML file line #2: Error inflating class fragment
via Stack Overflow by Hello-World
, 2 years ago
Binary XML file line #2: Error inflating class fragment
via Stack Overflow by Palladyi
, 2 years ago
Binary XML file line #17: Error inflating class fragment
via Stack Overflow by jr04
, 2 years ago
Binary XML file line #1: Error inflating class fragment
via bignerdranch.com by Unknown author, 2 years ago
Binary XML file line #2: Error inflating class fragment
java.lang.ClassCastException:
at android.app.Fragment.instantiate(Fragment.java:585)
at android.app.Fragment.instantiate(Fragment.java:561)
at android.app.Activity.onCreateView(Activity.java:4778)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:689)
at android.view.LayoutInflater.inflate(LayoutInflater.java:469)
at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
at android.app.Activity.setContentView(Activity.java:1929)
at at.nexoid.essen2014.Essen2014.onCreate(main.scm:593)
at android.app.Activity.performCreate(Activity.java:5231)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1098)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2185)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2270)
at android.app.ActivityThread.access$800(ActivityThread.java:136)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1225)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5171)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:837)

Users with the same issue

Samebug visitor profile picture
Unknown user
2 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.