I think the http4k-client-apache doesn't agree wit...
# http4k
r
I think the http4k-client-apache doesn't agree with my setup...
Copy code
xecution failed for task ':main:app:mergeDebugJavaResource'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
   > 3 files found with path 'META-INF/DEPENDENCIES' from inputs:
      - ~/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents.client5/httpclient5/5.2.1/c900514d3446d9ce5d9dbd90c21192048125440/httpclient5-5.2.1.jar
      - ~/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents.core5/httpcore5-h2/5.2/698bd8c759ccc7fd7398f3179ff45d0e5a7ccc16/httpcore5-h2-5.2.jar
      - ~/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents.core5/httpcore5/5.2/ab7d251b8dfa3f2878f1eefbcca0e1fc0ebeba27/httpcore5-5.2.jar
     Adding a packagingOptions block may help, please refer to
     <https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/dsl/ResourcesPackagingOptions>
     for more information
d
Not sure what to suggest. None of those are our jar files. If you find a resolution pleas let us know! (Also, OkHttp 😉 )
r
Aye, will switch
s
That looks like a specific problem with apache httpclient5 + android. A quick google shows that you may be able to exclude those files.
Alternatively, I'd try a different client implementation. Unless you have specific requirements, any of the clients http4k provides should be good to get started.
r
Okhttp seems to have fixed it. Ignoring them also works