-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
java.lang.NoClassDefFoundError: org.json.JSONString #388
Comments
Sigh. Android is killing me! 😭 org.json.JSONString and org.json.JSONWriter are used by the implementation but never used by Android at runtime. When the class is loaded, that's when it barfs. I'll have to change the implementation again, potentially duplicating logic from later org.json releases that Android doesn't have. Thanks for reporting this. You're correct - the workaround in the meantime is to include the org.json .jar. |
… not available on Android. Resolves #388.
Same problem here on Android. Has this been fixed on |
This was causing the reported "freeze" when we called the |
0.10.5 is being released as we speak. Maven Central staging is super slow due to degraded network performance, so please allow it 30 minutes or so before trying. |
Thanks. We tried it like 1h ago as the tag was already there. We will resume tomorrow. Thanks again @lhazlewood! |
Hi, I think that this issue (or some new form of it) is still around; when I set dependencies as explained in documentation:
And then, I use the following example code:
I get the following NPE:
And if I include |
@fernando-jascovich Did you set up proguard exclusions properly for org.json? We can't re-create this - we'd need a sample project from someone to demonstrate the problem. |
I'm not using proguard in that project. |
I made this repository for demonstration: https://github.com/fernando-jascovich/jjwt-issue-388 |
@fernando-jascovich thanks so much for verifying. If you are able to re-create the problem in the future, please do open a new ticket or request to re-open this one. Cheers! |
When I use 0.10.4 version, I got this error when I do the sample in readme. I don't know why but after add this library http://mvnrepository.com/artifact/org.json/json, I solved it. Not so sure if this is a bug or not.
The text was updated successfully, but these errors were encountered: