突然尝试使用将文件保存到 Google 云端硬盘,无需进行任何更改
Drive.DriveApi.getAppFolder(mGoogleApiClient)
.createFile(mGoogleApiClient, changeSet, result.getDriveContents())
.setResultCallback(fileCallback);
显示一个警告对话框,其中显示“应用需要一项或多项当前不可用的 Google Play 服务...”
我没有更改任何代码,所以有人可以告诉我哪里出了问题吗?谢谢
我也得到了日志
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,您需要使用驱动器 REST API。
来自文档:
This API is deprecated. Clients must migrate to the Drive REST API or another suitable solution to avoid disruptions to your application.
关于android - Google 云端硬盘 API 不可用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60539560/