Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when sending an email through SendGrid API on android 6 project #114

Closed
baudoliver7 opened this issue Apr 12, 2019 · 1 comment
Closed
Labels
status: duplicate duplicate issue

Comments

@baudoliver7
Copy link

Issue Summary

SendGrid doesn't work on android Level 23+ because HttpClient of Apache which one java-http-client has based on, has been removed from Android 6.

Steps to Reproduce

  1. Have an android 6 project
  2. Import sendgrid-java:4.3.0
  3. Try to send an email through Sendgrid API
  4. You get an error in SendGrid constructor

Details of error :
java.lang.NoSuchFieldError: No static field INSTANCE of type Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; in class Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; or its superclasses (declaration of 'org.apache.http.conn.ssl.AllowAllHostnameVerifier' appears in /system/framework/framework.jar!classes3.dex)

Technical details:

  • java-http-client Version: master (latest commit: 4.2.0)
  • Java Version: 1.8
@thinkingserious thinkingserious added difficulty: hard fix is hard in difficulty help wanted status: help wanted requesting help from the community type: community enhancement feature request not on Twilio's roadmap status: duplicate duplicate issue and removed difficulty: hard fix is hard in difficulty help wanted status: help wanted requesting help from the community type: community enhancement feature request not on Twilio's roadmap labels Apr 16, 2019
@thinkingserious
Copy link
Contributor

Hello @AigleRoyal7,

I believe this is a duplicate of #2. Please follow along there for progress. Thanks!

With Best Regards,

Elmer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate duplicate issue
Projects
None yet
Development

No branches or pull requests

2 participants