java.lang.RuntimeException: Unable to start activity ComponentInfo{xxx.com.au.abcd/xxx.com.au.abcd.activities.AddInfoActivity}: android.view.InflateException: Binary XML file line #18: Error inflating class fragment

Stack Overflow | Barrier | 4 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    InflateException when creating Navigation Drawer

    Stack Overflow | 4 months ago | Barrier
    java.lang.RuntimeException: Unable to start activity ComponentInfo{xxx.com.au.abcd/xxx.com.au.abcd.activities.AddInfoActivity}: android.view.InflateException: Binary XML file line #18: Error inflating class fragment

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at xxx.com.au.abcd.activities.NavigationDrawerFragment.onCreateView()
    2. xxx.com.au
      NavigationDrawerFragment.onCreateView
      1. xxx.com.au.abcd.activities.NavigationDrawerFragment.onCreateView(NavigationDrawerFragment.java:103)
      1 frame
    3. Android Platform
      Activity.onCreateView
      1. android.app.Fragment.performCreateView(Fragment.java:1700)
      2. android.app.FragmentManagerImpl.moveToState(FragmentManager.java:866)
      3. android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1040)
      4. android.app.FragmentManagerImpl.addFragment(FragmentManager.java:1142)
      5. android.app.Activity.onCreateView(Activity.java:5020)
      5 frames
    4. Android Support v4
      FragmentActivity.onCreateView
      1. android.support.v4.app.BaseFragmentActivityHoneycomb.onCreateView(BaseFragmentActivityHoneycomb.java:36)
      2. android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:75)
      2 frames
    5. Android Platform
      LayoutInflater.inflate
      1. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:695)
      2. android.view.LayoutInflater.rInflate(LayoutInflater.java:761)
      3. android.view.LayoutInflater.inflate(LayoutInflater.java:498)
      4. android.view.LayoutInflater.inflate(LayoutInflater.java:398)
      5. android.view.LayoutInflater.inflate(LayoutInflater.java:354)
      5 frames
    6. 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
    7. xxx.com.au
      AddInfoActivity.onCreate
      1. xxx.com.au.abcd.activities.AddInfoActivity.onCreate(AddInfoActivity.java:33)
      1 frame
    8. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:5484)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2400)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2498)
      5. android.app.ActivityThread.access$900(ActivityThread.java:179)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1324)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:146)
      9. android.app.ActivityThread.main(ActivityThread.java:5641)
      9 frames
    9. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames