android include tag - invalid layout reference

后端 未结 8 598
遥遥无期
遥遥无期 2020-12-05 06:21

I\'m having a problem including a different layout through the include tag in the android layout xml file. When specifing the layout reference ( @layout/... ), i\'m getting

8条回答
  •  悲哀的现实
    2020-12-05 07:01

    If anyone stumbles upon this thread looking for this error:

    Caused by: android.view.InflateException: You must specifiy a layout in the include tag: 
    

    Make sure you do:

    and not:

    layout should not have android: in front of it.

提交回复
热议问题