解决方案一:
之后可能报错: Cannot find the declaration of element 'LinearLayout'
解决方法二:
在layout文件夹下建立子文件后(),子文件夹里xml文件出现Layout:cannot find the declaration of element 'LinearLayout'
需要在build.gradle里增加sourceSets节点将添加布局引用
格式 src/main/res/layout/文件夹名称/layout/
示例:
'src/main/res/layout/law_enforce_layout'