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
  • 179,855
  • 19
  • 132
  • 245

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,474
  • 6
  • 40
  • 68
Ahmed Wahdan
  • 330
  • 4
  • 15