app not working and log shows Unsupported scope: https://www.googleapis.com/auth/drive #69
Comments
Getting this as well... Anyone found any solution? Thanks! |
Can you be more specific which file/sample? |
I tried https://github.com/gsuitedevs/android-samples/blob/master/drive/demos/app/src/main/java/com/google/android/gms/drive/sample/demo/RetrieveMetadataActivity.java, the moment pickTextFile is called, I get "Unsupported scope" error shown in the title. |
Not sure if it matters, I was using Google v11.8.0. Tested on Moto G4. |
@grant were you able to reproduce or more information is needed? Thanks! |
Thanks for the details and pardon the response. I'm not sure of the issue here. (This sample was imported from a previous author). CC @asrivas @sqrrrl who might understand this error more. Pull Requests are welcome if you're able to fix the issue. |
Looking at BaseDemoActivity it only requests the file and appdata scopes. Just ran it myself (on emulator) and worked as expected. @jacobhub and @sgong-pdftron - Did either of you modify BaseDemoActivity or make any other changes around auth? |
It looks like your problems are with the API in general, and not these samples in particular. In that case, please see the support options here: https://developers.google.com/drive/android/support In regards to the scope issue, it is by design:
|
I am trying to test the drive api, I manage to login but when trying to use drive api app crashes and logcat shows:
01-15 14:03:34.481 3090 3177 E ClientConnectOperation: nzh: Authorization failed: Unsupported scope: https://www.googleapis.com/auth/drive
01-15 14:03:34.481 3090 3177 E ClientConnectOperation: at nzl.a(:com.google.android.gms@11951440:25)
01-15 14:03:34.481 3090 3177 E ClientConnectOperation: at nvy.(:com.google.android.gms@11951440:26)
01-15 14:03:34.481 3090 3177 E ClientConnectOperation: at nxh.a(:com.google.android.gms@11951440:72)
01-15 14:03:34.481 3090 3177 E ClientConnectOperation: at swi.run(:com.google.android.gms@11951440:11)
01-15 14:03:34.481 3090 3177 E ClientConnectOperation: at mvc.run(:com.google.android.gms@11951440:26)
01-15 14:03:34.481 3090 3177 E ClientConnectOperation: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
01-15 14:03:34.481 3090 3177 E ClientConnectOperation: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
01-15 14:03:34.481 3090 3177 E ClientConnectOperation: at nak.run(:com.google.android.gms@11951440)
01-15 14:03:34.481 3090 3177 E ClientConnectOperation: at java.lang.Thread.run(Thread.java:761)
The text was updated successfully, but these errors were encountered: