Skip to content

Find problem with process '&' in manifest #2

@WilliamChen98

Description

@WilliamChen98

Hi Ajay,
While I am processing a manifest file, I met the exception below:

[Fatal Error] com.android.settings.xml:287:18: The entity name must immediately follow the '&' in the entity reference.
org.xml.sax.SAXParseException; systemId: file:/home/samele/Public/manifest/com.android.settings.xml; lineNumber: 287; columnNumber: 18; The entity name must immediately follow the '&' in the entity reference.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:205)
at com.android.manifest.ManifestInspector.getDocument(ManifestInspector.java:37)
at com.android.manifest.ManifestInspector.main(ManifestInspector.java:22)

I followed the exception message and checked the manifest file, which shows like this:

I searched this problem on Stack Overflow, and it seems that before using DOMParser to parse manifest files, we need to change '&' to '&'.
Hope you can fix that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions