Skip to content

Trouble compiling the project using Gradle #62

@jidesoft

Description

@jidesoft

In order to use this project in an Android app, I had these two lines in the gradle script.

    implementation 'se.walkercrou:google-places-api-java:2.1.7'
    implementation 'org.apache.httpcomponents:httpclient-android:4.3.5.1'

I noticed the following libraries were added because of the two lines above.

Gradle: org.apache.httpcomponents:httpclient:4.3.5@jar
Gradle: org.apache.httpcomponents:httpclient-android:4.3.5.1@jar
Gradle: org.apache.httpcomponents:httpcore:4.3.2@jar

When I compile and run the project, I got this error message.

Program type already present: org.apache.http.ContentTooLongException

The reason is ContentTooLongException class is present in both httpcore 4.3.2 jar and the httpclient-android 4.3.5.1 jar. If you remove httpclient-android, it compiles but ends up with a run-time exception at the BasicLineFormatter. Do you guys have any idea how to solve this issue?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions