0

我正在使用适用于 Android 的 Google Drive SDK,最近,我发现files().update()方法抛出异常“ 400 Bad Request”但它之前运行良好,并且files().insert()运行良好,是 Google Drive 服务器的问题吗?

4

1 回答 1

1

您使用的是哪个版本的 Google Drive API?错误可能是由于 v2 中 files.update 方法的更改。

正如这里提到的https://developers.google.com/drive/migration,Drive SDK v2 添加了来自 v1 的非向后兼容更改,因为参数 id 已重命名为 files.update 的 fileId。

于 2013-07-03T08:06:58.020 回答