BaseGameUtils GoogleApiClient.ApiOptions不能被解析为一个类型 [英] BaseGameUtils GoogleApiClient.ApiOptions cannot be resolved to a type

查看:390
本文介绍了BaseGameUtils GoogleApiClient.ApiOptions不能被解析为一个类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

进口BaseGameUtils项目为库和修复了几个错误之后,我偶然发现这些错误:

After importing BaseGameUtils project as a library and fixing a couple of errors i came across these errors:

GoogleApiClient.ApiOptions mGamesApiOptions = null;
GoogleApiClient.ApiOptions mPlusApiOptions = null;
GoogleApiClient.ApiOptions mAppStateApiOptions = null;

中的错误说GoogleApiClient.ApiOptions不能被解析为一个类型。 其他错误我得到:

the errors say GoogleApiClient.ApiOptions cannot be resolved to a type. other errors i got:

public void setGamesApiOptions(GoogleApiClient.ApiOptions options) {
    doApiOptionsPreCheck();
    mGamesApiOptions = options;
}

他们说mGamesApiOptions不能被解析为一个变量和以前一样的GoogleApiClient.ApiOptions。我已经提到的google_play_services_lib到GameBaseUtils。香港专业教育学院看着互联网没有更迭一些解释上,唯一的事情,我发现这是<一个href="https://$c$c.google.com/p/google-api-java-client/wiki/Setup">https://$c$c.google.com/p/google-api-java-client/wiki/Setup但并没有太大的帮助可能是因为我真的不知道该怎么办,谁能帮助? (顺便说一句我用eclipse)

they say mGamesApiOptions cannot be resolved to a variable and the same as before for the GoogleApiClient.ApiOptions. i've already referenced the google_play_services_lib to the GameBaseUtils. ive looked on the internet for some explanation without succes, the only thing i found is this https://code.google.com/p/google-api-java-client/wiki/Setup but didn't help much either because i didn't really understand what to do, can anyone help? (btw i use eclipse)

推荐答案

在相同的问题就来了刚才..这个解决方案工作

came across the same problem just now.. this solution worked

使用的code可以在这里找到,而不是:<一href="https://gist.github.com/EmmanuelVinas/ef09a35bcc805ba6deb3">https://gist.github.com/EmmanuelVinas/ef09a35bcc805ba6deb3

Use the code available here instead: https://gist.github.com/EmmanuelVinas/ef09a35bcc805ba6deb3

只是削减了从GameHelper.java的进口(BaseGameUtils)来结束它,然后粘贴要点的内容作为替代。

Just cut everything from the imports of GameHelper.java (BaseGameUtils) to the end of it and then paste the contents of that gist as a replacement.

这篇关于BaseGameUtils GoogleApiClient.ApiOptions不能被解析为一个类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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