Error 12501 authenticating with google sign-in

后端 未结 12 1941
我在风中等你
我在风中等你 2020-11-28 13:12

I\'m using google sign-in services to authenticate users that use my app. I got it to work when I just requested email information

GoogleSignInOptions gso =          


        
12条回答
  •  醉梦人生
    2020-11-28 13:50

    1.Specify signingConfigs in your gradle file

    signingConfigs {
            config {
                keyAlias 'appalias'
                keyPassword 'hunter123'
                storePassword 'hunter123'
                storeFile file('path/to/keystore.jks')
            }
    }
    

    2.Go to Build Types in Project Structure (in Android Studio) and specify signingConfigs to "config"

    Now clean your project and build again. It should work.

    If the above doesn't work then below is your last resort.
    Try step one and build and check. If it's not working go to next step and try to build again.

    1. Build a signed apk (With remember password checked).
    2. Before signing check the filename of the keystore file and the one yo give in while signing the apk (in android studio).
    3. Install the signed apk in your device.
    4. Wait for five minutes.
    5. Try singing in to google. If still 12501 is coming wait five more minutes. While doing that hit gradle sync.
    6. Try again. It should work.

    Edit: Google have added apk signing in the console. If you already signed your apk, ignore it OR if you want to use it be careful with it because it can break your current google signin settings

提交回复
热议问题