Google Drive API - the name must not be empty: null (But I had passed valid account name to GoogleAccountCredential)

前端 未结 5 1190
自闭症患者
自闭症患者 2020-12-03 08:12

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

5条回答
  •  生来不讨喜
    2020-12-03 09:01

    In my case (Google Drive REST API v3), ProGuard was the culprit, as the code was working fine in debug mode.

    Just adding -keep class com.google.** { *;} to ProGuard rules got rid of the issue.

    PS: I had to call requestEmail() but I did not ask for any GET_ACCOUNTS permission.

提交回复
热议问题