【问题标题】:How can I correct the warning "Drive.API is deprecated"? [duplicate]如何更正警告“Drive.API 已弃用”? [复制]
【发布时间】:2018-04-27 10:31:46
【问题描述】:

这是我创建与 Google Drive 服务连接的 GoogleApiClient 实例的代码:

mGoogleApiClient = new GoogleApiClient.Builder(this)
            .enableAutoManage(this /* FragmentActivity */, this /* 
                OnConnectionFailedListener */)

            .addApi(Auth.GOOGLE_SIGN_IN_API, gso)
            .addApi(Drive.API)
            .addScope(Drive.SCOPE_FILE)

            .build();

implementation 'com.google.android.gms:play-services-auth:15.0.0'
implementation 'com.google.android.gms:play-services-drive:15.0.0'

我收到了警告

“API”已弃用

如何防止出现此警告?

【问题讨论】:

标签: android google-drive-android-api


【解决方案1】:

https://stackoverflow.com/a/47843323/9581467 处给出了已弃用的 Google Drive API 的全球答案 带有适当的文档链接

感谢@Arshad 和@noogui

【讨论】:

    猜你喜欢
    • 2020-03-29
    • 2015-12-25
    • 2019-01-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多