元素的内容必须由格式良好的字符数据或标记组成。AndroidManifest.xml
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12502194/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
The content of elements must consist of well-formed character data or markup. AndroidManifest.xml
提问by Paulo
When I use this code on AndroidManifest.xml
当我在 AndroidManifest.xml 上使用此代码时
<provider
android:authorities="android.androidcustom.quicknotesprovider"
android:name=".QuickNotesProvider" >="" <="" pre="">
</provider>
I have this error, how could I fix?
我有这个错误,我该如何解决?
The content of elements must consist of well-formed character data or markup. AndroidManifest.xml
元素的内容必须由格式良好的字符数据或标记组成。AndroidManifest.xml
回答by Sam
Remove the syntax errors from the end, like so:
从末尾删除语法错误,如下所示:
<provider
android:authorities="android.androidcustom.quicknotesprovider"
android:name=".QuickNotesProvider" >
I assume that you are closing this tag as well:
我假设您也正在关闭此标签:
</provider>
If you are using Eclipse sometimes miscellaneous characters will appear at the end of your line when you use the auto-complete features. (Sometimes these "bonus" characters aren't even displayed, which can be frustrating!)
如果您使用的是 Eclipse,当您使用自动完成功能时,有时会在行尾出现杂项字符。(有时甚至不显示这些“奖励”字符,这可能令人沮丧!)