元素的内容必须由格式良好的字符数据或标记组成。 AndroidManifest.xml中

时间:2022-01-03 16:15:14

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中

1 个解决方案

#1


4  

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,则在使用自动完成功能时,有时会在行的末尾显示其他字符。 (有时甚至不显示这些“奖励”字符,这可能令人沮丧!)

#1


4  

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,则在使用自动完成功能时,有时会在行的末尾显示其他字符。 (有时甚至不显示这些“奖励”字符,这可能令人沮丧!)