我收到错误 PlusClient.OnPersonLoadedListener 无法解析为类型
。下面是我使用 PlusClient.OnPersonLoadedListener
的行。
public class MyActivity extends Activity implements ConnectionCallbacks,
OnConnectionFailedListener, OnClickListener,
PlusClient.OnPersonLoadedListener...
我已经完美地将 google play services lib
添加到我的项目中。我可以这样说,因为我将它与 Google map v2 一起使用并且效果很好。
我也收到错误 loadPerson is undefined for type PlusClient
at line
mPlusClient.loadPerson(this, "me");
错误删除@overridden
行
@Override
public void onPersonLoaded(ConnectionResult status, Person person) {...}
知道我为什么会收到这个吗?
最佳答案
看起来 OnPersonLoadedListener
和 loadPerson
不是函数/成员
http://developer.android.com/reference/com/google/android/gms/plus/PlusClient.html
它是 OnPeopleLoadedListener
和 loadPeople
关于java - PlusClient.OnPersonLoadedListener 无法解析为类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19087102/