sendgrid/sendgrid-java

Update the dependency to java-http-client to support version 4.2.0

Closed this issue · 4 comments

Issue Summary

We should probably make the dependency always pull the latest minor release.

i will work on this~

@thinkingserious
I am using your sendGrid lib for android . I include

compile 'com.sendgrid:sendgrid-java:4.1.2'
compile 'com.sendgrid:java-http-client:4.2.0'
in Gradle.But it does not work.It gives this error while sending email
Caused by: java.lang.NoClassDefFoundError:
Failed resolution of: Lorg/apache/http/impl/client/HttpClients;
I am using this for latest android versions Nougat and Marshmallow.
It crash on this line:
SendGrid sg = new SendGrid(System.getenv("API-Key"));

Please Help me!
Thanks in advance

Hello @baignomi,

I believe this is your issue. Please take a look at your dependencies to resolve as described in the link.

With Best Regards,

Elmer