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
dave
02/14/2023, 8:02 AM
Not sure what to suggest. None of those are our jar files. If you find a resolution pleas let us know!
(Also, OkHttp 😉 )
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
reactormonk
02/14/2023, 9:59 AM
Okhttp seems to have fixed it. Ignoring them also works