Google SIgn-In for android

前端 未结 2 2199
既然无缘
既然无缘 2021-01-16 08:38

I tried the google developer documentation and tried sign-in for my app. The code is copied from the git with added codes from the documentation. and defined in LoginAc

相关标签:
2条回答
  • 2021-01-16 09:18

    The Error occurred only in emulator in when compiling with new play service 8.3 While testing in actual hardware doesn't show any problem. It is due to the mismatch in the play service versions in emulator and the API. Hope they upgrade the Google API SDK with latest play service and release some notice about it.

    0 讨论(0)
  • 2021-01-16 09:19

    While you calling signIn() method ,method can't find startActivityForResult. where you got error.

    You need to @override startActivityForResult for LoginActivity. Add below code in you LoginActivity.

    Code:

     @Override
    public void startActivityForResult(Intent intent, int requestCode) {
        super.startActivityForResult(intent, requestCode);
    }
    
    0 讨论(0)
提交回复
热议问题