New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Null options are not permitted for this Api #78
Comments
At the beginning of the GameHelper class, you instantiate mPlusApiOptions and define it as null, so there's no reason it would pass anything else.
|
@swalls yes I understand that, my question would be, why it seems that nobody but me is having this problem, if it is done in GameHelper by default? |
@ar2rsawseen Oh, sorry. I assumed you knew you're not the only one getting it. I got the same NullPointerException once I declared this in my extending class:
And I subsequently had to remove mPlusApiOptions from the .addApi declaration in order for my code to work again. Before declaring CLIENT_ALL, it was working fine for some reason. But I needed to integrate more than just the GAMES api at that point. |
I'll look into this the issue: I have seen in recent updates that if you pass null as ApiOptions, it can break. The fix is to initialize ApiOptions. |
Just wanted to chim that i have the same NPE issue. I am using CLIENT_ALL as well and am now declaring the PlusOptions mPlusApiOptions = PlusOptions.builder().build(); |
The current version has simply removed to pass the plusOptions. That is probably bad since the method |
You need to add the APIs you are using in the API client builder along with the identifier for the API and not null, for example:
|
Keep getting:
the fix seems to be, not passing mPlusOptions
Is this a problem in my code, or something changes in Google Play Services?
The text was updated successfully, but these errors were encountered: