Android上的进口com.google.android.gms.plus.PlusClient不

2019-10-24 05:20发布

我更新和进口谷歌播放,services_lib项目,并添加了这个库,我的项目仍然是表现出同样的错误进口com.google.android.gms.plus.PlusClient不能得到解决的

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

而PlusClient不能被解析为一个类型上

private PlusClient mPlusClient;

Answer 1:

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

从这个链接

  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 The import com.google.android.gms.plus.PlusClient cannot be resolved