error:Error parsing XML:unbound prefix
2012-03-04 22:22
856 查看
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
今天写这段XML的时候总是提示这个错误。
解决方法是:在FrameLayout后面加一段:xmlns:android="http://schemas.android.com/apk/res/android"
即改后代码如下:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
然后就不会出现这个错误了。
错误的意思是:无边界的前缀。xmlns字段可以限制这段代码的界限。
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
今天写这段XML的时候总是提示这个错误。
解决方法是:在FrameLayout后面加一段:xmlns:android="http://schemas.android.com/apk/res/android"
即改后代码如下:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
然后就不会出现这个错误了。
错误的意思是:无边界的前缀。xmlns字段可以限制这段代码的界限。
相关文章推荐
- android编程中遇到的关于Error parsing XML: unbound prefix错误的原因及解决办法
- Error Parsing XML: unbound prefix--关于Android中的xliff
- error: Error parsing XML: unbound prefix
- Error parsing XML: unbound prefix解决方式
- Error parsing XML: unbound prefix on library 解决方法
- android编写UI出现error: Error parsing XML: unbound prefix 的错误原因及解决方案
- 举例说明android编程中遇到Error parsing XML: unbound prefix错误的原因及解决办法
- error error parsing xml unbound prefix
- 使用自定义控件报错error: Error parsing XML: unbound prefix ---sep
- Error parsing XML: unbound prefix on XXX解决办法
- Android xliff和字符串资源(Error parsing XML: unbound prefix)
- android - error: Error parsing XML: unbound prefix
- Error parsing XML: unbound prefix on XXX解决办法
- Error parsing XML: unbound prefix解决方式
- error: Error parsing XML: unbound prefix 总结
- xml:error parsing xml unbound prefix
- android编译时报错:Error parsing XML: unbound prefix 的错误原因及解决方案
- Error Parsing XML: unbound prefix--关于Android中的xliff
- 导入adt项目进入android studio报Error:(2) Error parsing XML: prefix must not be bound to one of the reserved
- Error parsing XML: prefix must not be bound to one of the reserved namespace names