I am trying to upload a text file to my Google Drive account. No matter what, I always encounter an com.google.api.client.googleapis.json.GoogleJsonResponseException:
com.google.api.client.googleapis.json.GoogleJsonResponseException:
After a long time searching, I found this answer hidden in the search engine:
Change the line where you define scopes to:
private static final List SCOPES = Arrays.asList(GmailScopes.MAIL_GOOGLE_COM);
https://stackoverflow.com/a/38599382/1317559