问题
Upon deep research, I was unable to integrate and send emails from SendGrid in the Android Application. SendGrid has Java API for sending emails but adding the dependency in Android Studio throws errors when a build is made. Also, there was a library by Dany Santiyago in GitHub but sadly it doesn't work too. It throws an error saying
More than one file was found with OS independent path 'META-INF/LICENSE'
I followed the guidelines in the question in Stack Overflow but again a new error came saying unable to merge dex. Please suggest a way to integrate SendGrid to the Android Application.
回答1:
There is no perfect workaround as SendGrid doesn't have an Android API or SDK.
回答2:
I found this on github : https://github.com/thinkingserious/sendgrid-android-example
The code is not production ready but I am using this in my Android app and it works fine. Leaving this here, for anyone for future reference.
来源:https://stackoverflow.com/questions/48780793/sendgrid-api-for-android-using-java