Skip to content
New issue

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

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

Already on GitHub? # to your account

java.lang.NoClassDefFoundError: Failed resolution of: Ljava/util/Optional; #81

Closed
jgmGit opened this issue Apr 7, 2018 · 4 comments
Closed
Labels

Comments

@jgmGit
Copy link

jgmGit commented Apr 7, 2018

Doesn't work with Android Version 6.0.1.
I am using library version com.networknt:json-schema-validator:0.1.18. Is there something that can be done ?

04-07 11:28:10.932 3799-3813/? I/TestRunner: java.lang.NoClassDefFoundError: Failed resolution of: Ljava/util/Optional;
        at com.networknt.schema.JsonMetaSchema.newValidator(JsonMetaSchema.java:241)
        at com.networknt.schema.ValidationContext.newValidator(ValidationContext.java:24)
        at com.networknt.schema.JsonSchema.read(JsonSchema.java:116)
        at com.networknt.schema.JsonSchema.<init>(JsonSchema.java:56)
        at com.networknt.schema.JsonSchema.<init>(JsonSchema.java:49)
        at com.networknt.schema.JsonSchema.<init>(JsonSchema.java:44)
        at com.networknt.schema.JsonSchemaFactory.newJsonSchema(JsonSchemaFactory.java:144)
        at com.networknt.schema.JsonSchemaFactory.getSchema(JsonSchemaFactory.java:165)
@stevehu
Copy link
Contributor

stevehu commented Apr 7, 2018

@johnygeorge We are trying our best to ensure that this library is Java 6 compatible so that more users can use it. However, we don't have Andriod environment to verify that. Thanks a lot for bringing it up.

It is addressed in #84

@stevehu stevehu added the bug label Apr 7, 2018
@stevehu
Copy link
Contributor

stevehu commented Apr 7, 2018

I have just released a new version 0.1.19 and it will be soon available from Maven Central. Please verify if there are other issues in Android environment. Thanks for your help.

https://github.com/networknt/json-schema-validator/releases/tag/0.1.19

@jgmGit
Copy link
Author

jgmGit commented Apr 7, 2018

It works now. Thanks a lot for your quick and fast support.

@jgmGit jgmGit closed this as completed Apr 7, 2018
@stevehu
Copy link
Contributor

stevehu commented Apr 7, 2018

@johnygeorge Thanks you!!! We are all working together for the community.

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

No branches or pull requests

2 participants