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

Exception in thread "main" java.lang.NoClassDefFoundError: okhttp3/Request$Builder #43

Closed
mirceanis opened this issue Mar 15, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mirceanis
Copy link
Member

This happens in a project that is not explicitly importing the okhttp dependency.
This is signaling a dependency declaration issue.

When fixed this would also negate the need to declare testImplementation("com.squareup.okhttp3:okhttp:3.14.1") in projects that use it for testing.

Workaround

dependencies {
  //...
  implementation("com.squareup.okhttp3:okhttp:3.14.1")
}
@mirceanis mirceanis added the bug Something isn't working label Mar 15, 2020
@mirceanis mirceanis self-assigned this Mar 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant