i'm getting error while getting Finger print MD5 certification - android

this is my path:C:\ANDROID\Java\jdk1.6.0\bin>keytool.exe -list -alias androiddebugkey -keystore"C:\ANDROID\debugkey\debug.keystore"-storepass android -keypass android
keytool error: java.lang.RuntimeException: Usage error, android is not a legal c
ommand

change to this
space is needed.
keytool.exe -list -alias androiddebugkey -keystore "C:\ANDROID\debugkey\debug.keystore" -storepass android -keypass android
You can also check the path to keystroke from eclipse
Goto window->preference->Android->Build
and see the path on right side.

Related

How do I do "Authenticating Your Client with Google"?

How do I Authenticating Your Client correctly with google?
I'm following this tutorial
https://developers.google.com/android/guides/client-auth
I copy this text into my command prompt -
keytool -exportcert -list -v \
-alias androiddebugkey -keystore %USERPROFILE%.android\debug.keystore
I get this message back "-alias is not recognized as an internal or external command, operable program or batch file."
What am doing wrong?
The copied command shouldn't contain the backslash after -v and it must be placed in one single line, like this:
keytool -exportcert -list -v -alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore
Besides you have to change the %USERPROFILE% location in the command to the path where the .android directory located. (Maybe it is here: C:\User\YourUserName\ , but you have to check it if it's there)
set your cmd path to jdk then run this cmd
WINDOWS
keytool -list -v -keystore %USERPROFILE%/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
MAC/LINUX
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
I think the end goal is to generate the SHA1 key.
Best Alternative is to follow following steps:
In Android Studio, click on gradle on the right side panel.
And then navigate to app > Tasks > android > signingReport.
Double clicking it will generate the SHA1 key.
best way to get your SHAI is
keytool -list -v -keystore "C:\Users\username\ .android\debug.keystore" -alias androiddebugkey -storepass android -keypass android

How to scape an space to get the MD5 SH1 To generate a key with keytools for android map

Hi I have the following problema when I try to get the MD5 result with this Command:
"keytool -list -v -keystore C:\Users\3D Apps.android\debug.keystore -alias androiddebugkey -storepass android -keypass Android"
this is the message:
"option not allowed APP.android\debug.keystore"
I have thry many thinhs without success
-like complete the 3D with ~1 like this "C:\Users\3D~1...." same problema.
-Put a ^ to scape the space without success.
Any suggestion?
Put the file name in quotes:
keytool -list -v -keystore "C:\Users\3D Apps.android\debug.keystore" -alias androiddebugkey -storepass android -keypass Android

Android Google Maps: Obtaining api key

I am following this tutorial here:
http://www.vogella.com/articles/AndroidGoogleMaps/article.html
On my mac and am not sure how to accomplish this step to get my sha-1:
Update:
I realized I already have a key cause I build and sign my project. Trying to get the SHA-1 is proving difficult with the terminal on my mac:
Mikes-MacBook-Air:beerPortfolio Mike$ keytool -list -v -alias androiddebugkey \ -keystore bp_key.keystore \ -storepass android -keypass android
keytool error: java.lang.RuntimeException: Usage error, -keystore is not a legal command
java.lang.RuntimeException: Usage error, -keystore is not a legal command
at sun.security.tools.KeyTool.parseArgs(KeyTool.java:375)
at sun.security.tools.KeyTool.run(KeyTool.java:171)
at sun.security.tools.KeyTool.main(KeyTool.java:166)
Mikes-MacBook-Air:beerPortfolio Mike$
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
The above command worked for me. You can change your keystore path if it is in another location.
Here is the Link

when i get google key this error come say re try

when i get google api key in Command promt its show an error retry eror whatis that? plz help me its not obtain akey said ill legal operation
C:\Program Files\Java\jdk1.6.0_20\bin>keytool -list -alias androiddebugkey -keys
tore"C:\Documents and Settings\Nazeer\.android\debug.keystore" -storepass androi
d -keypass android
Illegal option: -keystoreC:\Documents and Settings\Nazeer\.android\debug.keysto
re
Try keytool -help
C:\Program Files\Java\jdk1.6.0_20\bin>
You need a space between keystore and "C:....etc
-keystore "C:\Documents and Settings\Nazeer\.android\debug.keystore" -storepass androi
d -keypass android
Change this
C:\Program Files\Java\jdk1.6.0_20\bin>keytool -list -alias
androiddebugkey -keystore"C:\Documents and
Settings\Nazeer.android\debug.keystore" -storepass androi d -keypass
android
to this
C:\Program Files\Java\jdk1.7.0_05\bin>keytool -v -list -alias
androiddebugkey -keystore C:\Documents and
Settings\Nazeer.android\debug.keystore -storepass android -keypass
android
you need to add space between keystore word and the location because the command line will be read it like this
-keystoreC:\Documents and Settings\Nazeer.android\debug.keysto re
and it won't recognize the command and I added -v in case you also want to get the MD5 fingerprint

Error in Keytool command

hi when i try to run this command bin/keytool -list -alias androiddebugkey -keystore debug.keystore -storepass android -keypass android
i got the error java.lang.Exception Keystore file doesnot exist :debug.keyStore
actually i am trying to get googlemaps key for android never used keytool command.
can any one help how to remove this error
The problem is that the keytool does not know where to look for the keystore file.
If you're on Windows 7 / Vista, try:
keytool -list -alias androiddebugkey -keystore c:\users\your-user-name\.android\debug.keystore -storepass android -keypass android
(replace your-user-name with your actual user name)
For Windows XP, try:
keytool -list -alias androiddebugkey -keystore c:\documents and settings\your-user-name\.android\debug.keystore -storepass android -keypass android
If V2 map to generate SHA key use this command. use for releasing key means for testing.
C:\Program Files\Java\jdk1.6.0_20\bin>keytool.exe -list -v -alias androiddebugkey -keystore C:\Users\DON\.android\debug.keystore -storepass android -keypass android
Don is usersystem name
If you want app live means for development.
eclipse->Window ->Preferences ->Android ->Build -> now you get the sha key
Finally i solve the problem and the correct working script / Command is below:
Please note the double quotes where they are placed please use as it is as this is the correct method. and off course please change the user name and as for the different versions of windows you people will have to change it accordingly. Please feel free to ask if you people have any questions.
C:\Program Files\Java\jdk1.6.0_25\bin>keytool -list -alias androiddebugkey -keys
tore "c:\documents and settings\user\.android\debug.keystore" -storepass android
-keypass android

Categories

Resources