Google SIgn-In for android

前端 未结 2 2198
既然无缘
既然无缘 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: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);
    }
    

提交回复
热议问题