Skip to content
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: java.util.Objects when using OkHttp with Ktor 1.2.0+ #1328

Closed
nolanamy opened this issue Sep 9, 2019 · 3 comments
Assignees
Labels
ux User Experience issue

Comments

@nolanamy
Copy link

nolanamy commented Sep 9, 2019

Ktor Version and Engine Used
io.ktor:ktor-client-okhttp:1.2.4

Describe the bug
java.lang.NoClassDefFoundError: java.util.Objects in OkHttp

See OkHttp 3.13 Requires Android 5+ linked from issue square/okhttp#4716

Do I have to configure my own OkHttp instance (as requested here #903)? Can I do that given that Ktor includes a newer version of OkHttp?

To Reproduce
Call HttpClient() on Android 4.x

@nolanamy nolanamy added the bug label Sep 9, 2019
@e5l e5l self-assigned this Sep 9, 2019
@cy6erGn0m
Copy link
Contributor

Well, starting from that version okhttp requires Android 5 so there is nothing to do with ktor. Currently, we depend on 3.14.2.

@cy6erGn0m cy6erGn0m added ux User Experience issue and removed bug labels Sep 9, 2019
@oleg-larshin
Copy link

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

@e5l
Copy link
Member

e5l commented Apr 5, 2021

It's OkHttp version issue. I'm not sure that we're going to support old versions of OkHttp, consider using Android engine instead

@e5l e5l closed this as completed Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ux User Experience issue
Projects
None yet
Development

No branches or pull requests

4 participants