java.lang.RuntimeException: Unable to start activity ComponentInfo{example.prgguru.com.wallit/example.prgguru.com.wallit.MainActivity}: android.view.InflateException: Binary XML file line #3: Error inflating class fragment

Stack Overflow | Viraj Mehta | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    java.lang.RuntimeException: Unable to start activity ComponentInfo:android.view.InflateException

    Stack Overflow | 9 months ago | Viraj Mehta
    java.lang.RuntimeException: Unable to start activity ComponentInfo{example.prgguru.com.wallit/example.prgguru.com.wallit.MainActivity}: android.view.InflateException: Binary XML file line #3: Error inflating class fragment
  2. 0

    ANDROID FRAGMENT GOOGLE MAPS V2 ERROR,FOLLOWED ANDROID HIVE TUTORIAL

    Stack Overflow | 2 years ago | Khatokar Rakshith
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.googlemapdemo/com.example.googlemapdemo.MainActivity}: android.view.InflateException: Binary XML file line #12: Error inflating class fragment
  3. 0

    sides of view getting chopped off

    Stack Overflow | 2 years ago | Abhijith Murali
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.magnovlabs.contactbook/com.magnovlabs.contactbook.FacultyDetails}: android.view.InflateException: Binary XML file line #72: Error inflating class null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Fragment instance error

    Stack Overflow | 2 years ago | tang
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.text/com.example.text.ui.MainActivity}: android.view.InflateException: Binary XML file line #19: Error inflating class fragment
  6. 0

    Caused by: android.view.InflateException: Binary XML file line #11: Error inflating class fragment

    Stack Overflow | 3 years ago | user2734182
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.raj.fragment/com.raj.fragment.MainActivity}: android.view.InflateException: Binary XML file line #11: Error inflating class fragment
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassCastException

    No message provided

    at android.app.Fragment.instantiate()
  2. Android Platform
    LayoutInflater.inflate
    1. android.app.Fragment.instantiate(Fragment.java:585)
    2. android.app.Fragment.instantiate(Fragment.java:561)
    3. android.app.Activity.onCreateView(Activity.java:5066)
    4. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:695)
    5. android.view.LayoutInflater.inflate(LayoutInflater.java:470)
    6. android.view.LayoutInflater.inflate(LayoutInflater.java:398)
    7. android.view.LayoutInflater.inflate(LayoutInflater.java:354)
    7 frames
  3. Android
    PhoneWindow.setContentView
    1. com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:350)
    1 frame
  4. Android Platform
    Activity.setContentView
    1. android.app.Activity.setContentView(Activity.java:2059)
    1 frame
  5. example.prgguru.com
    MainActivity.onCreate
    1. example.prgguru.com.wallit.MainActivity.onCreate(MainActivity.java:13)
    1 frame
  6. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:5541)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2368)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2464)
    5. android.app.ActivityThread.access$900(ActivityThread.java:172)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1308)
    7. android.os.Handler.dispatchMessage(Handler.java:102)
    8. android.os.Looper.loop(Looper.java:146)
    9. android.app.ActivityThread.main(ActivityThread.java:5653)
    9 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  8. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
    2 frames
  9. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame