找不到元素'linearlayout'的声明 [英] cannot find the declaration of element 'linearlayout'

查看:102
本文介绍了找不到元素'linearlayout'的声明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Android的新手,正在学习一本书.但是问题来了.当我决定添加一个名为layout_larger的文件夹并将名为 activity_one_page_or_two.xml 的文件复制到 layout_larger 时,不幸的是 error:错误:(4,43)cvc-elt.1.a:找不到元素LinearLayout的声明.不知道它为什么来.有人可以帮我吗?

I am new to Android and learning with a book.But here comes the problem. When I decided to add a folder named layout_larger and copied the file named activity_one_page_or_two.xml to layout_larger, unfortunately I occurred the error : Error:(4, 43) cvc-elt.1.a: Cannot find the declaration of element LinearLayout.No idea why it comes. Anyone could give me a hand?

推荐答案

您当前的布局目录名称 layout_large ,这是不正确的

your current layout directory name layout_large this is incorrect

正确的目录名称为 layout-large

我希望您的问题得到解决.

i hope your problem is resolve.

这篇关于找不到元素'linearlayout'的声明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆