thinkingserious / sendgrid-android-example

Using the SendGrid Java library in a native Android app.
6 stars 5 forks source link

Cannot resolve constructor SendGrid(String, String) #2

Open sandeepyohans opened 6 years ago

sandeepyohans commented 6 years ago

Hi! I'm using implementation 'com.sendgrid:sendgrid-java:4.3.0' in my android app. But there is no SendGrid constructor with two String parameters.

SendGrid sendgrid = new SendGrid( username, password );

I believe that these examples uses deprecated api and needs to be updated.

sandeepyohans commented 6 years ago

I see that it is coming from the jar file: implementation files('libs/sendgrid-0.1.2-jar.jar')

Can you provide a sample using implementation 'com.sendgrid:sendgrid-java:4.3.0'dependency instead?

sandeepyohans commented 6 years ago

All I want to do is, send email from Android app using SendGrid API key.