Дублирует классы при построении Android Project - PullRequest
0 голосов
/ 27 февраля 2020

Я использую htmlunit 2.36.0 в Android Studio. Когда я пытаюсь собрать, это ошибка, которую я получаю:

Duplicate class org.apache.http.ConnectionClosedException found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.ConnectionReuseStrategy found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.Consts found in the following modules: htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar), httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.ContentTooLongException found in the following modules: htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar), httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.FormattedHeader found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.Header found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.HeaderElement found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.HeaderElementIterator found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.HeaderIterator found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.HttpClientConnection found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.HttpConnection found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.HttpConnectionFactory found in the following modules: htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar), httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.HttpConnectionMetrics found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.HttpEntity found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.HttpEntityEnclosingRequest found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.HttpException found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.HttpHeaders found in the following modules: htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar), httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.HttpHost found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.HttpInetConnection found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.HttpMessage found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.HttpRequest found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.HttpRequestFactory found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.HttpRequestInterceptor found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.HttpResponse found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.HttpResponseFactory found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.HttpResponseInterceptor found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.HttpServerConnection found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.HttpStatus found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.HttpVersion found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.MalformedChunkCodingException found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.MessageConstraintException found in the following modules: htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar), httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.MethodNotSupportedException found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.NameValuePair found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.NoHttpResponseException found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.ParseException found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.ProtocolException found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.ProtocolVersion found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.ReasonPhraseCatalog found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.RequestLine found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.StatusLine found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.TokenIterator found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.TruncatedChunkException found in the following modules: htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar), httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.UnsupportedHttpVersionException found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.annotation.GuardedBy found in modules httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.annotation.Immutable found in modules httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.annotation.NotThreadSafe found in modules httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.annotation.ThreadSafe found in modules httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.auth.AuthOption found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.auth.AuthProtocolState found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.auth.AuthSchemeProvider found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.auth.ChallengeState found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.auth.ContextAwareAuthScheme found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.AuthCache found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.AuthenticationStrategy found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.BackoffManager found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.ConnectionBackoffStrategy found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.RedirectStrategy found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.ServiceUnavailableRetryStrategy found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.config.AuthSchemes found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.config.CookieSpecs found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.config.RequestConfig found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.config.RequestConfig$Builder found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.entity.DecompressingEntity found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.entity.DeflateDecompressingEntity found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.entity.DeflateInputStream found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.entity.DeflateInputStream$DeflateStream found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.entity.EntityBuilder found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.entity.GzipCompressingEntity found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.entity.GzipDecompressingEntity found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.entity.LazyDecompressingInputStream found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.methods.AbstractExecutionAwareRequest found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.methods.AbstractExecutionAwareRequest$1 found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.methods.AbstractExecutionAwareRequest$2 found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.methods.CloseableHttpResponse found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.methods.Configurable found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.methods.HttpExecutionAware found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.methods.HttpPatch found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.methods.HttpRequestWrapper found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.methods.HttpRequestWrapper$1 found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.methods.HttpRequestWrapper$HttpEntityEnclosingRequestWrapper found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.methods.RequestBuilder found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.methods.RequestBuilder$InternalEntityEclosingRequest found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.methods.RequestBuilder$InternalRequest found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.params.HttpClientParamConfig found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.protocol.HttpClientContext found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.protocol.RequestAcceptEncoding found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.protocol.RequestAuthCache found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.protocol.RequestClientConnControl found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.protocol.RequestExpectContinue found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.protocol.ResponseContentEncoding found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.utils.DateUtils found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.utils.DateUtils$DateFormatHolder found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.utils.HttpClientUtils found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.utils.Idn found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.utils.JdkIdn found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.utils.Punycode found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.utils.Rfc3492Idn found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.client.utils.URIBuilder found in modules htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar) and httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1)
    Duplicate class org.apache.http.concurrent.BasicFuture found in the following modules: htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar), httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.concurrent.Cancellable found in the following modules: htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar), httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.concurrent.FutureCallback found in the following modules: htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar), httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.config.ConnectionConfig found in the following modules: htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar), httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.config.ConnectionConfig$Builder found in the following modules: htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar), httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.config.Lookup found in the following modules: htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar), httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.config.MessageConstraints found in the following modules: htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar), httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
    Duplicate class org.apache.http.config.MessageConstraints$Builder found in the following modules: htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar), httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)

 ...
        Duplicate class org.apache.http.pool.ConnPool found in the following modules: htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar), httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)
        Duplicate class org.apache.http.pool.ConnPoolControl found in the following modules: htmlunit-2.36.0-OSGi.jar (htmlunit-2.36.0-OSGi.jar), httpclient-android-4.3.5.1.jar (org.apache.httpcomponents:httpclient-android:4.3.5.1) and httpcore-4.3.2.jar (org.apache.httpcomponents:httpcore:4.3.2)

Это gradle, как вы можете видеть, я добавил exlcude-group, но я не уверен, что это правильно. Я добавил эти две реализации в конце, потому что я получил другую, которую вы можете проверить прямо здесь: Нет данных c поле INSTANCE типа Lorg / apache / http / conn / ssl / AllowAllHostnameVerifier при использовании htmlunit в Android Студийный проект

apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.port.test"
        minSdkVersion 26
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    testImplementation 'junit:junit:4.13'
    androidTestImplementation 'androidx.test.ext:junit:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
    implementation files('libs/htmlunit-2.36.0-OSGi.jar')

    implementation ('org.apache.httpcomponents:httpclient-android:4.3.5.1') {
        exclude group: 'org.apache.http'
    }

    implementation ('org.apache.httpcomponents:httpcore:4.3.2') {
        exclude group: 'org.apache.http'
    }
}
...