On Tue, 2019-03-26 at 01:26 +0000, Andrew Hardy wrote:
> Hi,
> 
> 
> Thank you so much for all your work in porting 
> org.apache.httpcomponents:httpclient to Android.  I appreciate the 
> benefits you are making available.  I am in the process of up
> versioning 
> some old Android code that used httpclient and I am swapping for you 
> Android port.  I have run into a little difficulty and I wonder if
> you 
> would be so kind as to help me understand where I am going wrong.
> 
> I am using the following dependancies:
> 
>      implementation 'org.apache.httpcomponents:httpclient-
> android:4.3.5.1'
>      implementation 'org.apache.httpcomponents.core5:httpcore5:5.0-
> beta7'
> 
> However, there are still 7 Classes which I used in my old code which
> I 
> cannot now find in either httpclient-android nor httpcore5, either
> same 
> named or renamed.  I would be very grateful if you could point me in
> the 
> right direction
> 
> import org.apache.http.client.ClientProtocolException; // cannot find
> in 
> httpclient-android but is in original client 4.0
> import org.apache.http.client.HttpClient; // cannot find in 
> httpclient-android but is in original client 4.0
> import org.apache.http.client.protocol.ClientContext; // cannot find
> in 
> httpclient-android but is in original client 4.0
> import org.apache.http.cookie.Cookie; // cannot find in 
> httpclient-android but is in original client 4.5
> import org.apache.http.client.CookieStore; // cannot find in 
> httpclient-android but is in original client 4.0
> import org.apache.http.impl.client.DefaultHttpClient; // cannot find
> in 
> httpclient-android but is in original client 4.5
> import org.apache.http.protocol.HTTP; // cannot find
> 
> Many thanks indeed.
> 

Those are HttpClient classes. Please use HttpClient 5.0, not just
HttpCore 5.0

Here is a HttpClient 5.0 migration guide that you may find useful. 

https://ok2c.github.io/httpclient-migration-guide/

Oleg



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org
For additional commands, e-mail: dev-h...@hc.apache.org

Reply via email to