So as part of a project I need to use Apache and JSON to send a receive data from a localhost database, from looking around on the internet many say to use these imports shown below, but Android Studio doesn't recognise them as imports, have they been deprecated and if so which imports should I use to carry out the same task?
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient;