React-native google signin gives Developer Error

后端 未结 8 1867
日久生厌
日久生厌 2021-02-02 17:53

I am trying Google login using React-native-google-signin plugin but it gives me a Developer_Error.I have done exctly same as mention in its document.here is my code ans steps.<

8条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-02 18:35

    In my case, my SHA-1 key that I add to firebase project is invalid because I get it from /Users/apple/.android/debug.keystore.

    The correct SHA-1 should be got from the android folder inside the Project example: /Users/apple/Documents/Project/testGoogleFirebaseLogin/android/app/debug.keystore (testGoogleFirebaseLogin is my project folder name)

    So, the most convenient way is cd android && ./gradlew signingReport it will generate many many lines of data, scrolling to find and use the SHA-1 from the one that has Store: (your project path)

    NOTE: not the one that has Store: /Users/apple/.android/debug.keystore.

    (Apologize to my English skill, I will be appreciated if some one correct my gramma and make this answer is easier to read)

提交回复
热议问题