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

okhttp dependency conflict #30

Open
asuarezgrupobme opened this issue Jun 15, 2020 · 0 comments
Open

okhttp dependency conflict #30

asuarezgrupobme opened this issue Jun 15, 2020 · 0 comments

Comments

@asuarezgrupobme
Copy link

I recently upgraded my project to version 4.5.16 of web3j and now I am getting the following error:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

org.web3j.protocol.http.HttpService.performIO(HttpService.java:154)

The following method did not exist:

okhttp3.RequestBody.create(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/RequestBody;

The method's class, okhttp3.RequestBody, is available from the following locations:

jar:file:/home/usuario/.m2/repository/com/squareup/okhttp3/okhttp/3.14.4/okhttp-3.14.4.jar!/okhttp3/RequestBody.class

It was loaded from the following location:

file:/home/usuario/.m2/repository/com/squareup/okhttp3/okhttp/3.14.4/okhttp-3.14.4.jar

Action:

Correct the classpath of your application so that it contains a single, compatible version of okhttp3.RequestBody

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant