这次开发测试中,输入了xml布局代码后,出现了这个“Attribute is missing the Android namespace prefix”错误,查找之后原因很简单,也很低级,是因为xmlns:android="http://schemas.android.com/apk/res/android" 让我误写成了 xmlns="http://schemas.android.com/apk/res/android"。由英文提示也可知,错误的原因是丢写了android命名空间的前缀。
Attribute is missing the Android namespace prefix——android开发之xml布局文件
最新推荐文章于 2021-09-10 16:48:17 发布