Keytool does not ask for a password (using Facebook lib with Android)

I am running the script below as Facebook said. There is no compilation problem. The problem is that it never gives me a password question after the process is complete and according to the facebook documentation, it means that my path to the keystore is incorrect. But the debug.keystore file is in the right path! C: \ Users \ KSM45.android

Please let me know where I can be wrong? I just want to login to facebook!

(From the documentation page: Also make sure that you are using the correct password - for the debug storage, use "android" to generate keyhash. General rule: if the tool does not ask for the password, your path to the keystore is incorrect.)

keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64 
+7
source share
2 answers

Try deleting the keystore in ~/.android/debug.keystore , then clean the project in eclipse and run the application so that the eclipse plugin re-creates the keystore.

+1
source

I tried this on WinXP at work today and it did not work. After several attempts, I realized that this

this is the line i was working on and failed:

keytool -exportcert -alias androiddebugkey -keystore C: \ Documents and Settings \ Administrator .android \ debug.keystore | openssl sha1 -binary | openssl base64

The fact is that you must put quotation marks around your path debug.keystore

just:

keytool -exportcert -alias androiddebugkey -keystore "C: \ Documents and Settings \ Administrator .android \ debug.keystore" | openssl sha1 -binary | openssl base64

+1
source

All Articles