【发布时间】:2015-06-20 18:44:56
【问题描述】:
我正在尝试使用addConnectionCallbacks 向我的googleApiClient 添加回拨
mPlusClient = new GoogleApiClient.Builder(this).addConnectionCallbacks(this).addOnConnectionFailedListener(this).addApi(Plus.API).addScope(Plus.SCOPE_PLUS_LOGIN).build();
但我收到此错误:
Error:(85, 81) error: incompatible types: PlusBaseActivity cannot be converted to ConnectionCallbacks
我从在线教程中获得了此代码,但它似乎不起作用。
【问题讨论】:
标签: android google-api