com.google.android.gms.auth.GoogleAuthException: UNREGISTERED_ON_API_CONSOLE

后端 未结 4 1965
情书的邮戳
情书的邮戳 2020-12-09 11:29

Im implementing an android app that enables users to stream to a youtube channel straight from the app. I have created an API key and a OAuth 2.0 client ID

But I ge

4条回答
  •  时光取名叫无心
    2020-12-09 11:43

    Using the answers before this, I used it as a reference to understand and fix mine and made a much easier step-by step procedure of how I fixed mine.

    In Windows command prompt.

    Navigate to you java bin directory.

    C:\Program Files\Java\jdk1.8.0_111\bin>

    and type the ff. command

    keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
    

    then run the ff. code

    keytool -list -keystore  "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey
    

    when ask for password, type "android" (without double quotes)

    the resulting SHA1 key from the above code. Copy it, and paste it on your google cloud console here

    On the google cloud console webpage do this

    on the tab on the left, find and click "APIs & Services"

    then on the new page, on the left tab again, find and click "Credentials"

    now copy paste the key you copied from windows command prompt on the textbox below the "Signing-certificate fingerprint"

    make sure that the application id on your app and google cloud console matches each other.

提交回复
热议问题