java.lang.RuntimeException: Unable to start activity ComponentInfo{MyPackage/MyPackage.activities.MainActivity_}: android.view.InflateException: Binary XML file line #7: Error inflating class fragment

Stack Overflow | John Steve | 2 months ago
  1. 0

    Crash app when using AndroidAnnotations with support:appcompat-v7 version 23 +

    Stack Overflow | 2 months ago | John Steve
    java.lang.RuntimeException: Unable to start activity ComponentInfo{MyPackage/MyPackage.activities.MainActivity_}: android.view.InflateException: Binary XML file line #7: Error inflating class fragment
  2. 0

    Duplicate id 0x7f0c006b, tag null, or parent id 0xffffffff with another fragment for MainActivityFragment class

    Stack Overflow | 11 months ago | lazy_sunshine
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.dell.movielove/com.example.dell.movielove.MainActivity}: android.view.InflateException: Binary XML file line #36: Error inflating class fragment
  3. 0

    How to set Android DataBinding in nested layouts

    Stack Overflow | 5 months ago | Omkar
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example/com.example.userInterface.activity.MyActivity}: android.view.InflateException: Binary XML file line #35: Binary XML file line #27: Error inflating class fragment
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error when i try Use EditText in map

    Stack Overflow | 1 week ago | Yasser Admi
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.project.ytubasi.speedtaxi/com.project.ytubasi.speedtaxi.MapsActivity}: android.view.InflateException: Binary XML file line #32: Error inflating class fragment
  6. 0

    issue with integrating beyond AR with fragment

    GitHub | 2 years ago | nitin0331
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.nitin.suche/com.nitin.suche.BaseActivity}: android.view.InflateException: Binary XML file line #18: Error inflating class fragment

  1. LeoPalma 4 times, last 2 months ago
  2. adawolfs 2 times, last 4 months ago
1 unregistered visitors
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.IllegalArgumentException

    Binary XML file line #7: Must specify unique android:id, android:tag, or have a parent with an id for MyPackage.fragments.MainFragment_

    at android.support.v4.app.FragmentManagerImpl.onCreateView()
  2. Android Support v4
    FragmentActivity.onCreateView
    1. android.support.v4.app.FragmentManagerImpl.onCreateView(FragmentManager.java:2387)
    2. android.support.v4.app.FragmentController.onCreateView(FragmentController.java:120)
    3. android.support.v4.app.FragmentActivity.dispatchFragmentsOnCreateView(FragmentActivity.java:376)
    4. android.support.v4.app.BaseFragmentActivityHoneycomb.onCreateView(BaseFragmentActivityHoneycomb.java:33)
    5. android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:75)
    5 frames
  3. Android Platform
    LayoutInflater.inflate
    1. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:689)
    2. android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
    3. android.view.LayoutInflater.inflate(LayoutInflater.java:492)
    4. android.view.LayoutInflater.inflate(LayoutInflater.java:397)
    5. android.view.LayoutInflater.inflate(LayoutInflater.java:353)
    5 frames
  4. Android v7
    AppCompatActivity.setContentView
    1. android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284)
    2. android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
    2 frames
  5. MyPackage.activities
    MainActivity_.onCreate
    1. MyPackage.activities.MainActivity_.setContentView(MainActivity_.java:51)
    2. MyPackage.activities.MainActivity_.onCreate(MainActivity_.java:40)
    2 frames
  6. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:5231)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2201)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2286)
    5. android.app.ActivityThread.access$800(ActivityThread.java:144)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1246)
    7. android.os.Handler.dispatchMessage(Handler.java:102)
    8. android.os.Looper.loop(Looper.java:212)
    9. android.app.ActivityThread.main(ActivityThread.java:5137)
    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:902)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:718)
    2 frames
  9. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame