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.IllegalStateException: Field 'elementType' is not found in class java.util.EnumSet #3
Comments
Hi, At first, thank you for your report and your interest in YaGson. However, please note that YaGson was never tested on Android. And, it has much more dependencies to the structure of standard Java Library classes than the original Gson, which was the reason of this issue. Thus, it is possible that there are some other incompatibilities, which could potentially result in further exceptions or errors. I will try to test YaGson with some Android emulator, but it may take a longer time, as I have no Android experience at all. Also, could you please share with us why you have chosen YaGson for your Android apps. In particular, which YaGson features are important for you, and which are not. Thanks! |
Unfortunately, your fix does not completely solve the problem. In fact now there is another exception:
The exception is thrown always during object initialization I decided to use YaGson because it is really near to Gson and has circular reference (present in my project). I know there is also Jackson, but I find a little bit boring to annotate the circular class. Moreover, for such a "simple" task, I find that three jars are a bit too many. My choice then falls on YaGson although currently to avoid the problem I'm using Jackson. When you solve the bug, I will re-enable the YaGson serialization code |
Fixed in release 0.4.1 |
Checked and I confirm the bug is resolved! Thank you |
Hello.
I'm using your library in my android project. Actually, I've a smartphone and a tablet. In my smartphone
(v8.0), all works fine (version 8.0), but in my tablet (v4.4) an exception is thrown.
Exception is thrown during the initialization of YaGson
YaGson gson = new YaGson();
The text was updated successfully, but these errors were encountered: