【问题标题】:Google Drive Api deprecated ( Google play games -> Saved Games )Google Drive Api 已弃用(Google play games -> Saved Games)
【发布时间】:2019-06-15 03:03:42
【问题描述】:

我收到一封电子邮件,说在 12 月 9 日,所有使用 Google Drive API 的方法都将被弃用。

阅读已保存游戏的文档 (https://developers.google.com/games/services/android/savedgames),他们使用 Google Drive API

Google Play 游戏也会被弃用吗?我该如何解决?

谢谢。

我的 Build.gradle

android {
    compileSdkVersion 26
    defaultConfig {
        applicationId "xxxxxx"
        minSdkVersion 15
        targetSdkVersion 26
        versionCode 29
        versionName "29"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:26.1.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

    implementation 'com.google.android.gms:play-services-auth:16.0.1'
    implementation 'com.google.android.gms:play-services-games:16.0.0'
    implementation 'com.google.android.gms:play-services-ads:17.1.2'

    implementation 'com.android.billingclient:billing:1.1'
}

【问题讨论】:

    标签: android google-drive-api google-play-games google-drive-android-api google-drive-realtime-api


    【解决方案1】:

    Google Drive Android API 弃用

    Drive Android API 自 2018 年 12 月 6 日起弃用,并将于 2019 年 12 月 6 日停用。

    此 API 已弃用。客户必须迁移到 Drive REST API 或其他合适的解决方案,以避免中断您的应用程序。

    2019 年 10 月 21 日 Drive Android API 已从 Google Play 服务 SDK 分发中移除。在删除 Drive Android API 依赖项之前,应用程序将无法构建,但现有构建将不受影响。 Drive Android API 公共文档将不再可用。

    阅读更多 https://developers.google.com/drive/android/deprecation

    【讨论】:

    • 已保存的游戏会受到此更改的影响吗?
    • 您无需更改任何内容。您只是在使用 Google Android SDK,它在内部使用 Google Drive SDK。所以我们无能为力,让我们把它留给 Google 开发人员,他们会为我们做这件事,并希望他们为自己的 SDK 制定迁移计划。
    • @John 您可以在此处使用 Maven 仓库编译依赖列表跟踪他们的内部驱动 API 迁移 mvnrepository.com/artifact/com.google.android.gms/… 他们必须删除当前显示的驱动依赖,如 Android Package com.google.android.gms »播放服务驱动器
    • @PankajKantPatel 所以我认为保存的游戏应该还在工作?我的一些玩家报告保存的游戏无法运行,不确定是否与此问题有关...
    • @L3n95 是的,你是对的。他们应该先在各自的图书馆中这样做,然后再告诉任何人?
    猜你喜欢
    • 2016-11-16
    • 2015-10-29
    • 1970-01-01
    • 1970-01-01
    • 2023-04-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多