java - Can I use a new version of HttpClient in my Android project? -


i need work httpclient 4.2.5 in android project (added classpath). problem @ execution time, android takes default httpclient registered in apis. doesn't have classes , methods, have errors like:

java.lang.nosuchmethoderror: org.apache.http.impl.client.defaulthttpclient.setredirectstrategy

how can fix issue , execution version in classpath , ignore embedded version? tried change order of classpath libraries - didn't work.

you can use httpclientandroidlib. based on httpclient 4.2.3, think it's quite sufficient needs. author of lib bypasses restrictions renaming packages of original httpclient.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -