谷歌Android的加API:"该方法setActions(字符串[])是未定义的类型PlusClient.Builder" [英] Google Plus Android API: "The method setActions(String[]) is undefined for the type PlusClient.Builder"

查看:180
本文介绍了谷歌Android的加API:"该方法setActions(字符串[])是未定义的类型PlusClient.Builder"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使样品的Andr​​oid Google+应用工作...(由谷歌这里提供示例应用程序:的 https://developers.google.com/+/quickstart/android

I am trying to make the sample Android Google+ app working... (sample app provided by Google here: https://developers.google.com/+/quickstart/android )

我在的setAction的方法得到一个编译错误:

I am getting a compiling error on the "setAction" methods:

mPlusClient = new PlusClient.Builder(this, this, this)
                .setActions(MomentUtil.ACTIONS) // Compiling error here !
                .build();

我得到的方法setActions(字符串[])是未定义的类型PlusClient.Builder

I get "The method setActions(String[]) is undefined for the type PlusClient.Builder"

任何人知道为什么我得到这个错误???

Anybody knows why I get this error ???

谢谢!

推荐答案

1)进入SDK管理器,然后去其他并选择谷歌播放服务,并安装最新的更新。

1) Go to SDK Manager and go to extras and select google play services and install latest update.

2)然后通过像SDK /演员/谷歌的SDK文件夹浏览/ ..你会发现库project.Import伸入工作区,并作为库添加到乌尔项目。

2) Then browse through your sdk folder like sdk/extras/google/.. You will find the library project.Import that project into workspace and add it as library to ur project.

3)然后干净的构建和运行。

3) Then clean build and run.

这篇关于谷歌Android的加API:"该方法setActions(字符串[])是未定义的类型PlusClient.Builder"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆