Error inflating class fragment

后端 未结 30 2668
长发绾君心
长发绾君心 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-22 14:55

    I was having the same problem as you are facing. None of the tips on top helped me. Later, I found that all I had to do is fix my imports from:

    import android.app.Fragment;
    

    to:

    import android.support.v4.app.Fragment;
    

提交回复
热议问题