SendGrid API for Android using Java

做~自己de王妃 提交于 2020-03-04 21:42:30

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!