Hoo*_*net 12 xml eclipse validation android dtd xml-parsing
我和这里有很多相同的问题,但我有xmlns:android和xml = ...标签.我仍然有同样的错误.我不想在设置中单击忽略而不是警告,因此这里发布的问题.
来源是:
<?xml version="1.0" encoding="utf-8"?>
<GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</GridLayout>
Run Code Online (Sandbox Code Playgroud)
错误:
"没有检测到文档的语法约束(DTD或XML模式).grid_layout_test2.xml/SomeProject/res/layout line 1 XML Problem"
小智 19
对我来说,这是在Windows上运行eclipse的字符编码和unix文件模式的问题:
只需标记完整的代码,剪切并粘贴(简称:CtrlA-CtrlX-CtrlV),一切都很好 - 不再"没有语法限制......"警告
Ant*_*neP 11
我从bug问题中检索解决方案:
这个对我有用.
小心,我的解决方案是一种"我不明白,所以我更愿意停用"......
尝试下面的
<?xml version="1.0" encoding="utf-8"?>
<GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:id="@+id/grid"
android:layout_height="match_parent" >
</GridLayout>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
32880 次 |
| 最近记录: |