how can i get debug map api key? - android

C:\Users\Bladeszasza>keytool -list -alias androiddebugkey \ -keystore <C:\Users\
Bladeszasza\.android>.keystore \ -storepass android -keypass android
Access is denied.
I get that error it is the first time i want to use the keystore.I need to get the map api key but i m unable to generate the md5 fingerprint.Cna you help me.An i alredy have read this site
thanks a lot

This should do the trick provided the location is correct.
C:\Users\Bladeszasza>keytool -list -alias androiddebugkey -keystore C:\Users\Bladeszasza\.android\keystore -storepass android -keypass android

In command line you need to open Java-> jdk-> bin
as for me it is "C:\Program Files\Java\jdk1.7.0_03\bin"
There is "keytool" program which u need. In command line enter "cd C:\Program Files\Java\jdk1.7.0_03\bin"
And enter "keytool -list -v -keystore C:\Users\John\.android\debug.keystore"
So the final string in command line must look like:
"C:\Program Files\Java\jdk1.7.0_03\bin>keytool -list -v -keystore C:\Users\John\.android\debug.keystore". Whare usually u need only to change the name "John"
There will be SHA-1, MD5, etc
Finally, go to Google Access API google access api

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

API Generation error

I am trying to generate an android key for API access. The problem is that I can't. When following the standard pattern for SHA-1 fingerprint generation from the command prompt this error pops up simultaneously ... Any ideas on what this might be ??? I did read other posts but was not of much help.
keytool error: java.io.IOException: Invalid keystore format
java.io.IOException: Invalid keystore format
I did what had to be done, pointed the path to the JDK bin file where both the key tool and the jarsigner are .... and also followed the standard command line
keytool -exportcert -alias androiddebugkey -keystore {path-to-debug-or-production-keystore} -list -v
also
keytool -list -v -alias androiddebugkey -keystore <path_to_debug_keystore>debug.keystore -storepass android -keypass android
I think your, problem is here
keytool -v -list -keystore C:\Users\username\.android\debug.keystore
You have to give your keystore.exe location dont use dirtectly {path-to-debug-or-production-keystore}

can't get google maps api key

I have windows 7 and it seems that I can't get api key ! I've tried so much !
I opened the cmd and entered:
keytool -list -alias androiddebugkey -keystore D:\avd\.android\debug.keystore -storepass android -keypass android
and yet it says to me:
'keytool' is not recognized as an internal or external command, operable
program or batch file.
I've also tried like that:
"C:\Program Files\Java\jdk1.7.0_07\bin\java.exe" keytool -list -alias androiddebugkey -keystore D:\avd\.android\debug.keystore -storepass android -keypass android
and it says:
Could not find or load main class keytool
hope someone can help me I am very Desperate for an answer !
The dollar sign is not part of what you need to paste into your terminal. You should start with keytool on forward. In the example the dollar sign is showing the beginning of the prompt (which is how it looks on Unix/Mac terminals).
keytool is an executable that is part of the Java SDK. The location of the bin file must either be added to your terminal's path or you have to run it using the full path to the file. Typically, on Windows the Java binaries are located at C:\Program Files\Java\jdk1.7.0_07\bin or something similar. You were close with your second guess in this case, but keytool is not a command you pass to java.exe...it is an executable itself in the same directory.
HTH
Try this
C:\Program Files\Java\jdk1.7.0_07\bin\keytool -v -list -alias androiddebugkey -keystore D:\avd\.android\debug.keystore -storepass android -keypass android
or
Just copy the debug.keystore file to the same folder as keytool and execute the below in command prompt
keytool -v -list -alias androiddebugkey -keystore D:\avd\.android\debug.keystore -storepass android -keypass android
Those are the steps through the Command Prompt that worked for me :
cd C:\Program Files\Java\jdk1.8.0_05\bin keytool -list -alias
androiddebugkey -keystore C:\Users\ {username}.android\debug.keystore
-storepass android -keypass android

debug key to MD5 (for Google Maps tutorial) not working with my Terminal?

i'm trying to follow the google maps tutorial, but i need to use a debug key, i followed the instructions but when i write the command lines it does not work : the Terminal (on Mac) says "command not found" to this :
$ keytool -list -alias androiddebugkey \
-keystore /Users/Paul/.android/debug.keystore \
-storepass android -keypass android
Could you help me?
here's the link : http://code.google.com/android/add-ons/google-apis/mapkey.html#getdebugfingerprint
Thanks for your help
Try this change your directory to
C:>cd C:\Program Files\Java\\bin
in my case it is C:>cd C:\Program Files\Java\jre7\bin
now use this
keytool.exe -list -v -alias androiddebugkey -keystore "C:\Users\username\.android\debug.keystore" -storepass android -keypass android
If you still cant get it, check the Tutorial here
the keytool binary is located in your <JAVA_INSTALL_DIR>bin directory. Check to see if it is in your path.
try like this..
C:\Program Files\Java\jdk1.7.0_04\bin>keytool.exe -V -list -alias androiddebugkey -keystore "C:\Documents and Settings\IBM\.android\debug.keystore" -storepass android -keypass android
you ll get all the key values.

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