Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XMLPropertyListParser UnsupportedOperationException on Android #36

Closed
lucalooz opened this issue Mar 28, 2017 · 5 comments
Closed

XMLPropertyListParser UnsupportedOperationException on Android #36

lucalooz opened this issue Mar 28, 2017 · 5 comments
Assignees
Labels

Comments

@lucalooz
Copy link

With the version 1.19 i have this crash on Android:

Caused by: java.lang.UnsupportedOperationException: This parser does not support specification "Unknown" version "0.0"
at javax.xml.parsers.DocumentBuilderFactory.setXIncludeAware(DocumentBuilderFactory.java:471)
at com.dd.plist.XMLPropertyListParser.(XMLPropertyListParser.java:67)

@farmerbb
Copy link

farmerbb commented Apr 3, 2017

Also seeing this crash with versions 1.17, 1.18 and 1.19. 1.16 and earlier do not crash.

Looks like Android's implementation of setXIncludeAware() will always throw an UnsupportedOperationException when called. Removing the call to setXIncludeAware() should fix this crash.

@3breadt 3breadt self-assigned this Apr 5, 2017
@3breadt 3breadt added the bug label Apr 5, 2017
3breadt added a commit that referenced this issue Apr 10, 2017
@3breadt
Copy link
Owner

3breadt commented Apr 10, 2017

Thank you for your report. This issue was been introduced by #26 and will be fixed in release 1.20.

@3breadt 3breadt closed this as completed Apr 10, 2017
@Goddchen
Copy link

Any news on how 1.20 will be released? dd-plist is not usable on Android as of now :/

@3breadt
Copy link
Owner

3breadt commented Jul 20, 2017

@Goddchen Sorry for the delay, I released 1.20 now.

@Goddchen
Copy link

@3breadt wow thanks. Helped me a lot. For everyone else: what I did until right now is revert back to version 1.8 since this is the latest version available on Maven Central that works with Android.

Just tested 1.20, works perfectly! Good work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants