https://kotlinlang.org logo
Title
s

Saul Wiggin

12/17/2020, 3:14 PM
Does anyone know why I’m getting this error
Duplicate class org.apache.http.Consts found in modules jetified-httpclient-android-4.3.5 (org.apache.httpcomponents:httpclient-android:4.3.5) and jetified-httpcore-4.3 (org.apache.httpcomponents:httpcore:4.3.3)
The best guess I have currently is that something is duplicated or incorrect in the build.gradle file.
It also says fix dependancy resolution errors
v

Vampire

12/17/2020, 3:32 PM
If you google for it you will find the problem multiple times online. Seems some part in the android tool chain complains if classes are in multiple artifacts and that class is part of both artifacts it metions. Seems like you need to exclude one to not have both.
s

Saul Wiggin

12/17/2020, 4:52 PM
Removed almost everything from build.gradle dependancies. Now getting
> A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
Might try again tomorrow
v

Vampire

12/17/2020, 5:26 PM
That's even less a Gradle issue, some XML is invalid
And the Android tooling is complaining