I'm trying to send email using Sendgrid with Google Cloud Endpoints. Here is the reference: https://cloud.google.com/appengine/docs/java/mail/sendgrid
However, after copy Sendgrid.java to the src directory of the app, when I try to build the project, the error message says:
package com.google.appengine.labs.repackaged.org.json does not exist
It seems this package is not available to endpoints, but only app engine.
So, how can I send email from Google Cloud Endpoints?