I tried using the library to parse an ICS file and got a Parser error when calling 'load(filename)'. I have added the ICS text that caused the exception.
Hmmm...looks like I need to add 'ical4j-extensions'...However, under Android, I am not able to do this since the code (extensions) seems to have depencies compiled with Java8 (1.8). Is there any way to use 'extensions' with Java7 (1.7)?
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Status: open
Group: Beta (1.0)
Created: Thu Apr 20, 2017 08:46 PM UTC by Michael McEuin
Last Updated: Tue Apr 25, 2017 03:08 PM UTC
Owner: Ben Fortuna
Attachments:
parser_error.ics (1.4 kB; text/calendar)
I tried using the library to parse an ICS file and got a Parser error when calling 'load(filename)'. I have added the ICS text that caused the exception.
To be clear, the ‘ical4j’ package works without issue on Android. It seems that the keywords in my ICS file require an ‘extension’. When I try to build with ‘ical4j-extensions’, I get the Java8 error when trying to create the APK.
Compilation works without error, but fails on package creation.
Status: open
Group: Beta (1.0)
Created: Thu Apr 20, 2017 08:46 PM UTC by Michael McEuin
Last Updated: Tue Apr 25, 2017 03:08 PM UTC
Owner: Ben Fortuna
Attachments:
Exception in thread "main" java.util.ServiceConfigurationError: net.fortuna.ical4j.model.ParameterFactory: Provider net.fortuna.ical4j.extensions.parameter.Email$Factory could not be instantiated
Please help me to resolve it.
Last edit: Rahul Date 2017-08-12
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Here is the exact error message:
net.fortuna.ical4j.data.ParserException: Error at line 8:Unsupported parameter name: EMAIL
Hmmm...looks like I need to add 'ical4j-extensions'...However, under Android, I am not able to do this since the code (extensions) seems to have depencies compiled with Java8 (1.8). Is there any way to use 'extensions' with Java7 (1.7)?
Thanks!
I've released a new version of ical4j-extensions, hopefully compiled for Java 1.7. You can find it in maven central/bintray: http://search.maven.org/#artifactdetails%7Corg.mnode.ical4j%7Cical4j-extensions%7C1.0.1%7Cjar
Hi Michael,
All ical4 libraries should support java 1.7, I'll double check the compilation.
What error are you seeing in Android?
I think I posted the exact message in the bug report, but essentially, it was complaining that some of the dependencies were compiled with Java8.
Our Android project is set for 1_7. Even if I change it to Jack and 1_8, I get the same error.
Michael
Sent from my iPhone
Related
Bugs: #174
More info…
To be clear, the ‘ical4j’ package works without issue on Android. It seems that the keywords in my ICS file require an ‘extension’. When I try to build with ‘ical4j-extensions’, I get the Java8 error when trying to create the APK.
Compilation works without error, but fails on package creation.
Thanks!
Michael
I am editing my prevoius issue.
I understood that property parameter email is not supported by ical4j.
I used extension as described in https://github.com/ical4j/ical4j/wiki/Extensions
But I am getting error as:
Exception in thread "main" java.util.ServiceConfigurationError: net.fortuna.ical4j.model.ParameterFactory: Provider net.fortuna.ical4j.extensions.parameter.Email$Factory could not be instantiatedPlease help me to resolve it.
Last edit: Rahul Date 2017-08-12