Migrating Android application from Eclipse to Android Studio OR add new API compatibility may complain missing reference to following packages.
import org.apache.http.Header;import org.apache.http.HttpEntity;import org.apache.http.HttpResponse;import org.apache.http.client.ClientProtocolException;import org.apache.http.client.HttpClient;import org.apache.http.client.methods.HttpPost;import org.apache.http.entity.StringEntity;import org.apache.http.impl.client.DefaultHttpClient;
There are two solutions for this
1. Migrate to new replacement packages (new alternatives to above packages)
2. Add useLibrary 'org.apache.http.legacy' to build.gradle
Monday, 27 July 2020
Subscribe to:
Posts (Atom)