简体   繁体   中英

Google Drive API Not Available

All of the sudden without any changes trying to save a file to Google Drive using

 Drive.DriveApi.getAppFolder(mGoogleApiClient)
                .createFile(mGoogleApiClient, changeSet, result.getDriveContents())
                .setResultCallback(fileCallback);

Shows a warning dialog that says "app requires one or more Google Play services that are not currently available..."

I didn't change any code so can anyone give me a clue as to what is wrong? Thank you

I also get the log

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

Also I am implementing this library

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

Google Drive SDK is deprecated. In order to use the Google Drive SDK you need to use drive REST APIs.

From the documentation:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM