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
Moshi doesn't work with Android 2.3 #117
Comments
There is a fallback we could implement, but I don't think we ever really defined the minimum API level supported for Android. Do you really need to support such old devices still? |
No, I can use GSON for that. But it's better if it's at least documented somehow. |
Also stumbled uppon this problem now:
I like these users ( all 4,641 of them :) |
Send a pull request? |
That was mainly an answer to:
Unfortunately I don't know which fallback he is talking about there - otherwise I would consider sending a pull request. |
Did a quick search, and probably he means something like this? https://github.com/google/gson/blob/master/gson/src/main/java/com/google/gson/internal/UnsafeAllocator.java |
Yep, that’s what we need. |
I bumped into it today with moshi 1.9.0. |
In
ClassFactory.get()
, it uses reflection to get methodObjectStreamClass.getConstructorId()
. However, the method is not available in Android 2.3. Is there any workaround? Or should there be at least some documentation for this?The text was updated successfully, but these errors were encountered: