Android 无法解析导入 com.google.android.gms.plus.PlusClient
Android The import com.google.android.gms.plus.PlusClient cannot be resolved
我更新并导入了 google-play-services_lib 项目并将此库添加到我的项目中,但仍然显示相同的错误导入 com.google.android.gms.plus.PlusClient 无法在
上解析
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();
}
我更新并导入了 google-play-services_lib 项目并将此库添加到我的项目中,但仍然显示相同的错误导入 com.google.android.gms.plus.PlusClient 无法在
上解析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();
}