The method setAction(String, String) is undefined for the type PlusClient.Builder
-
21-12-2019 - |
Question
I have the code
mPlusClient = new PlusClient.Builder(this, this, this)
.setAction("http://schemas.google.com/AddActivity",
"http://schemas.google.com/ListenActivity")
.setScopes("PLUS_LOGIN")
.build();
How can I get rid of this error? (my sdk is all updated and i have my google-play-services_liv into the project library)
Solution
Change it to:
mPlusClient = new PlusClient.Builder(this, this, this)
.setActions("http://schemas.google.com/AddActivity","http://schemas.google.com/ListenActivity")
.setScopes("PLUS_LOGIN")
.build();
That's setActions
with an s
not setAction
. I think it was just a typo on your part! :)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow