Error处理:关于XML文件解析报错:android XML : unbound prefix
发布时间:2020-12-15 23:24:38 所属栏目:百科 来源:网络整理
导读:编写XML文件的时候,经常回出现android XML : unbound prefix这个错误。 例如: ?xml version="1.0" encoding="utf-8"?set rotate xmlns:Android="http://schemas.android.com/apk/res/android" Android:fromDegrees="0" android:pivotX="50%" android:durat
编写XML文件的时候,经常回出现android XML : unbound prefix这个错误。 例如: <?xml version="1.0" encoding="utf-8"?> <set> <rotate xmlns:Android="http://schemas.android.com/apk/res/android" Android:fromDegrees="0" android:pivotX="50%" android:duration="0" android:interpolator="@android:anim/linear_interpolator" android:pivotY="50%" android:repeatCount="0" android:toDegrees="-90" /> </set> 一不小心它就会跳出来。
这个里面错误的原因是把android写成了Android,Android开发中大小写是敏感的。
错误:android XML : unbound prefix 出现该错误一般有两个原因: 1.拼写错误。例如把android写成了amdroid,Android等 2.xml文档内没有加入 xmlns:android="http://schemas.android.com/apk/res/android" 引用。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- .net – FluentMigrator.Runner在输出目录中复制32位汇编
- Swift:从闭包调用嵌套函数时捕获语义.为什么编译器不会引发
- 同时三个AJAX请求完成后,再做一件事。
- "MtkWriteTool.exe Flash tool.exe应用程序正常初始化(
- 关于 bootloader 之物理内存 虚拟内存 映射表。OEMAddressT
- swift开发笔记23 引入百度地图
- ruby-on-rails – 将2个rails应用程序组合到一个代码库中
- Sqlite使用命令个别大全
- Oracle VM VirtualBox安装CentOS7
- oracle 11g数据库(表)的逻辑备份与恢复