元素的内容必须由格式良好的字符数据或标记组成。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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 10:50:00  来源:igfitidea点击:

The content of elements must consist of well-formed character data or markup. AndroidManifest.xml

androidxmlandroid-manifest

提问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,当您使用自动完成功能时,有时会在行尾出现杂项字符。(有时甚至不显示这些“奖励”字符,这可能令人沮丧!)