Domanda

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)

È stato utile?

Soluzione

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! :)

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top