【问题标题】:The method setAction(String, String) is undefined for the type PlusClient.Builder对于 PlusClient.Builder 类型,方法 setAction(String, String) 未定义
【发布时间】:2014-04-11 20:13:52
【问题描述】:

我有密码

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

我怎样才能摆脱这个错误? (我的 sdk 已全部更新,我将 google-play-services_liv 放入项目库)

【问题讨论】:

    标签: android eclipse google-play-services


    【解决方案1】:

    改成:

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

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

    【讨论】:

    猜你喜欢
    • 2013-11-11
    • 1970-01-01
    • 1970-01-01
    • 2023-03-26
    • 2020-05-05
    • 1970-01-01
    • 1970-01-01
    • 2015-11-20
    • 1970-01-01
    相关资源
    最近更新 更多