I am getting following errors when I import project into eclipse. I have updated my sdk to M.
import org.apache.http.HttpEntity; import org.apache.http.HttpR
apache http and NameValuePair has been deprecated in api 23. youl have to manualy add apache library check this .
NameValuePair
or may be you should start using from now HttpURLConnection . check this answer for same
HttpURLConnection