0
@Override
        protected Void doInBackground(Void... params) {
        ArrayList<Pair> dataToSend = new ArrayList<>();
        dataToSend.add(new Pair("name", user.name));
        dataToSend.add(new Pair("username", user.username));
        dataToSend.add(new Pair("age", user.age));
        dataToSend.add(new Pair("password", user.password));

        URIBuilder builder = //
        HttpParams httpRequestParams = new BasicHttpParams();
        return null;
    }
OneCricketeer
  • 151,199
  • 17
  • 111
  • 216

1 Answers1

0

In your project's src/build.gradle

add this line

 dependencies {
     compile 'org.apache.httpcomponents:httpclient:4.0-alpha4'
  }

and now synchronise your project and also build your project.

Shree Krishna
  • 8,273
  • 6
  • 36
  • 67
Ahmed Wahdan
  • 190
  • 3
  • 15