-
Notifications
You must be signed in to change notification settings - Fork 1
Find problem with process '&' in manifest #2
Description
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.