报错Caused by: android.view.InflateException: You must specify a layout in the include tag:

     Caused by: android.view.InflateException: Binary XML file line #256: You must specify a layout in the include tag: <include layout="@layout/layoutID" />
     Caused by: android.view.InflateException: You must specify a layout in the include tag: <include layout="@layout/layoutID" />
        at android.view.LayoutInflater.parseInclude(LayoutInflater.java:921)

原因是:include导入layout时,layout属性前面不应该加android

猜你喜欢

转载自blog.csdn.net/weixin_34000916/article/details/87640081
今日推荐