Google 驱动器 API 不可用

Google Drive API Not Available

突然尝试使用

将文件保存到 Google 驱动器而没有任何更改
 Drive.DriveApi.getAppFolder(mGoogleApiClient)
                .createFile(mGoogleApiClient, changeSet, result.getDriveContents())
                .setResultCallback(fileCallback);

显示一个警告对话框,上面写着 "app requires one or more Google Play services that are not currently available..."

我没有更改任何代码,所以任何人都可以告诉我哪里出了问题吗?谢谢

我也收到日志了

Bad call: specified package com.google.android.gms under uid 10349 but it is really 10016

我也在实现这个库

implementation "com.google.android.gms:play-services-drive:17.0.0"

Google Drive SDK 已弃用。要使用 Google Drive SDK,您需要使用 Drive REST API。

来自文档:

This API is deprecated. Clients must migrate to the Drive REST API or another suitable solution to avoid disruptions to your application.