apache httpclient 4.x - Error while sending email from android app using SendGrid -
Trying to send email using the grid sent to my app. AsyncTask I is the following code SendGrid sendgrid = New SendGrid ("XXXXXX", "YYYYYY"); PublishProgress ("Preparing mail message ...."); SendGrid.Email Email = New SendGrid.Email (); Email.setFrom (args [0] .toString ()); Email.addTo (args [2] .toString ()); Email.setSubject (args [3] .toString ()); Email.setText (args [4] .toString ()); // androidEmail.createEmailMessage (); Published progress ("sending email ..."); Try {Sendgrid.send (email); } Hold (SendGridException e) {System.out.println (e); Log.i ("SendGrid Exception", "Mail Not Sent"); } Published progress ("Email Sent"); When I run it, I get the following error: by: java.lang.NoSuchField error: org.apache.http .message.basicLineFormatter At org.apache.http.impl.io.DefaultHttpRequestWriterFactory On & lt; Init & gt; (DefaultHttpRequestWriterWitter.java:52) at org.apache.http.impl.io.De...