Invalid parent folder error for AppFolder in Drive API

前端 未结 4 1711

I get an invalid parent folder error, and I\'ve seen the solutions to use resource ID rather than Drive ID, but it\'s a different scenario here.

I\'m trying to acces

4条回答
  •  独厮守ぢ
    2020-12-03 13:06

    I am experiencing the same problem. I thought GoogleApiClient.ClearDefaultAccountAndReconnect() might be a workaround but it didn't help. As an alternative to uninstalling/reinstalling the app you can try these steps, they worked for me:

    1. In a browser, go to the page for managing your Google account's security settings.
    2. Select "Connected apps & sites", then "Manage Apps"
    3. Select your app from the list. It will show that it has access to Google Drive and a Remove button.
    4. Click on Remove.
    5. Wait a minute or two for the change to take effect, then run your app.
    6. When your app attempts to connect to Drive, you should get the consent screen prompting the user to allow or deny access. Accepting will reauthorize the app and should clear the problem. It did for me.

提交回复
热议问题