gpt4 book ai didi

Android import com.google.android.gms.plus.PlusClient 无法解析

转载 作者:行者123 更新时间:2023-11-30 01:59:50 25 4
gpt4 key购买 nike

我更新并导入了 google-play-services_lib 项目并将此库添加到我的项目中,但它仍然显示相同的错误 The import com.google.android.gms.plus.PlusClient cannot be resolved on

import com.google.android.gms.plus.PlusClient; 

PlusClient 无法解析为类型

private PlusClient mPlusClient;

最佳答案

PlusClient 在更新的播放服务中不可用。

来自 this link

  private GoogleApiClient buildGoogleApiClient() {
// When we build the GoogleApiClient we specify where connected and
// connection failed callbacks should be returned, which Google APIs our
// app uses and which OAuth 2.0 scopes our app requests.
return new GoogleApiClient.Builder(SigninActivity.this).addConnectionCallbacks(this)
.addOnConnectionFailedListener(this).addApi(Plus.API, Plus.PlusOptions.builder().build())
.addScope(Plus.SCOPE_PLUS_LOGIN).build();
}

关于Android import com.google.android.gms.plus.PlusClient 无法解析,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31653865/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com