On Thu, 2019-03-28 at 02:21 +0000, Andrew Hardy wrote: > I am really sorry to contact again. I am still a little confused. > > I am confused as to how to make this work with these dependancies as > I > think was suggested: > > implementation 'org.apache.httpcomponents:httpclient- > android:4.3.5.1' > implementation 'org.apache.httpcomponents.core5:httpcore5:5.0- > beta7' > implementation > 'org.apache.httpcomponents.client5:httpclient5:5.0-beta3' > > If I use for example > org.apache.http.client.entity.UrlEncodedFormEntityHC4 > > its constructor cannot be resolved since > > public UrlEncodedFormEntityHC4 ( > final List <? extends NameValuePair> parameters, > final String charset) > > is refering to org.apache.http.NameValuePair which with these > dependancies > does not exist only org.apache.hc.core5.http.NameValuePair. > > Ought I to be simply using an older version of client and core or > will this > create other conflicts? Which versions would be best? >
No worries, Andrew Just forget 'org.apache.httpcomponents:httpclient-android:4.3.5.1', remove it from the dependency set and only use classes from 'org.apache.hc.httpcore5' and 'org.apache.hc.httpclient5' namespaces. Hope this helps Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org For additional commands, e-mail: dev-h...@hc.apache.org