方法setAction(String,String)未定义类型PlusClient.Builder

时间:2014-04-11 20:13:53

标签: android eclipse google-play-services

我有代码

mPlusClient = new PlusClient.Builder(this, this, this)
            .setAction("http://schemas.google.com/AddActivity",
                    "http://schemas.google.com/ListenActivity")
            .setScopes("PLUS_LOGIN")        
            .build();

如何摆脱这个错误? (我的jdk已全部更新,我的google-play-services_lib已进入项目库)

1 个答案:

答案 0 :(得分:0)

将其更改为:

mPlusClient = new PlusClient.Builder(this, this, this)
.setActions("http://schemas.google.com/AddActivity","http://schemas.google.com/ListenActivity") 
.setScopes("PLUS_LOGIN")
.build();

那个setActions s而不是setAction。我认为这只是你的错字! :)