Recently, I have Android code which accesses to Google Drive. I\'m using Google APIs Client Library for Java instead of Google Play services client
I had the same problem, all permissions were granted and still I got this error.
My simple problem was, that the googleSignInAccount.getSignInAccount().getAccount()
was null
. This is the case, if you do NOT request the email permissions (GoogleSignInOptions.Builder.requestEmail
). Seems like this account can't be created without the user email.
So make sure to add this permission to the GoogleSignInOptions
...