Error inflating class fragment

后端 未结 30 2651
长发绾君心
长发绾君心 2020-11-22 14:38

I get the Error

Unable to start activity ComponentInfo{de.androidbuch.activiti/de.androidbuch.activiti.task.Activity}: android.view.InflateException: Binar         


        
30条回答
  •  自闭症患者
    2020-11-22 14:41

    I was receiving this error in android studio the problem was that my fragment had a relative layout while the code on the OnCreateView function was

    mDrawerListView = (ListView) inflater.inflate(
                    R.layout.fragment_navigation_drawer, container, false);
    

    is your code doing the same thing?

提交回复
热议问题