Skip to content

okhttp dependency conflict #30

Open
@asuarezgrupobme

Description

@asuarezgrupobme

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions