android.view.InflateException: Binary XML file line #10: Error inflating class fragment

前端 未结 4 860
我寻月下人不归
我寻月下人不归 2021-01-06 02:30

I created an app by following the tutorial at http://www.techotopia.com/index.php/Using_Fragments_in_Android_-_A_Worked_Example, but I have a error.

LogCat:<

4条回答
  •  说谎
    说谎 (楼主)
    2021-01-06 03:26

    Try adding correct layouts at correct place like ex. in my case I was putting colors.xml in values-w820p then it was giving runtime exception of classtype. I changed the folder from this to simple value and... taffffda!! it worked! :)

提交回复
热议问题