onConnectionFailed: ConnectionResult.getErrorCode() = 4

前端 未结 3 685
迷失自我
迷失自我 2021-01-02 21:19

Here i am doing google + integartion.i am using the following code but i am facing the error which is : onConnectionFailed: ConnectionResult.getErrorCode() = 4.So please any

3条回答
  •  时光说笑
    2021-01-02 21:49

    I had the same problem. I solved in google api console >> consent screen, and adding a Product Name.

    I try this tutorial: http://www.androidhive.info/2014/02/android-login-with-google-plus-account-1/

    In the main activity you need change .addApi(Plus.API, null) by .addApi(Plus.API, Plus.PlusOptions.builder().build())

提交回复
热议问题