不建议使用Google Drive Api(Google Play游戏-> Saved Games)

时间:2019-01-21 17:11:08

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

我收到一封电子邮件,指出将于12月9日弃用所有使用 Google Drive API 的方法。

他们阅读了保存的游戏(https://developers.google.com/games/services/android/savedgames)的文档,并使用 Google云端硬盘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'
}

1 个答案:

答案 0 :(得分:-1)

Google Drive Android API弃用

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

不推荐使用此API。客户必须迁移到云端硬盘REST API或其他合适的解决方案,以避免破坏您的应用程序。

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

了解更多信息,请访问 https://developers.google.com/drive/android/deprecation