Java – basegameutils cannot add Google API client Apioptions resolves to type

After importing the basegameutils project into the library and fixing several errors, I encountered these errors:

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

Google API client Apioptions cannot resolve to a type Other errors I get:

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

They said that mgamesapioptions could not be resolved to variables and was different from the previous Google API client Apioptions is the same I have Google_ play_ services_ Lib refers to gamebaseutils The Hong Kong Institute of professional education searched the Internet for some unsuccessful explanations. The only thing I found was this https://code.google.com/p/google-api-java-client/wiki/Setup , but it doesn't help much, because I really don't understand what to do. Can anyone help? (by the way, I use eclipse)

Solution

Just encountered the same problem This solution works

Please use the code provided here: https://gist.github.com/EmmanuelVinas/ef09a35bcc805ba6deb3

Just from gamehelper Import of Java (basegameutils) to its end, cut all contents, and then paste the contents of the gist as a replacement

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>