google login problem on android

Asked

Viewed 88 times

0

I’m having a lot of difficulty logging into google with android, I have an app, in Ordova, configured my app, I have credentials in google.

I’m following this example: https://github.com/EddyVerbruggen/cordova-plugin-googleplus#android

google app setup page: https://console.developers.google.com/apis/

My problem is this part forward, https://developers.google.com/mobile/add?platform=android&cntapi=signin

keytool -exportcert -Keystore "C:.... android debug.Keystore" -list -v -alias photos

this line does not run on the console:

C:... www>-alias androiddebugkey -Keystore "C:...android debug.Keystore" '-alias' is not recognized as an internal command or external, a operable program or a batch file.

C:...www>keytool -exportcert -list -v -alias androiddebugkey -Keystore

"C:.... android debug.Keystore" 'keytool' is not recognized as an internal command or external, a operable program or a batch file.

I took that example:https://developers.google.com/android/guides/client-auth

Problem I think it boils down to: Certification of the application in google, generate a key sha1, so I understood have to run a command on the console, but it error, I do not know mandatory this certification, summarizing I am not able to generate the key sha1, maybe that’s a problem, ae of the return message with error value 8. I am days seeing this and found no solution.

  • Would you be able to put the error in your question?

  • C: photo projects www>keytool -list -v -Keystore mystore.Keystore 'keytool' is not recognized as an internal & #Xa; or external command, a operable program or a batch file.

1 answer

0

You should go to the folder where Keytool is, it is an application and should not be in the PATH of your system, so points out this error that you described. So it’s in the Android bin folder, look for the root and then the bin folder has several . exe, there’s your keytool, (1) you can point there and run at once, or (2) you can go to the directory (cd "android executables directory") and run there yourself. This key is essential at various times in the development of Android Apps.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.