keytool Error for Map API Key - android

How to publish the Apk file with signed key for Map,
Am Getting Error as Follows in CMD
C:\Program Files\Java\jdk1.7.0_21\jre\bin>keytool -list -v -keystore D:\Shankar
Completed Project\Mandate Project\keystore -alias mandatehandbook
Illegal option: Completed
keytool -list [OPTION]...
Lists entries in a keystore
Options:
Use "keytool -help" for all available commands

Put quotes around the keystore path. Your shell is confused by the space in the pathname.
keytool -list -v -keystore "D:\Shankar Completed Project\Mandate Project\keystore" -alias mandatehandbook

debug keytool example:
keytool -list -v -keystore "D:\Users\%your name%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android

Related

Keystore file does not exist: /root/.android/debug.keystore for ubuntu

Need google+ sign in for my phonegap application for that I want to generate Certificate SHA-1.I run
keytool -exportcert -list -v \
-alias androiddebugkey -keystore ~/.android/debug.keystore
the command to generate Android Signing Certificate SHA-1, but it gave an error
Keystore file does not exist: /root/.android/debug.keystore
so I search for that file using find ~ -name "debug.keystore" but my search result is empty.
I also tried below command
keytool -genkey -alias myKey -keystore store.jks
keytool -selfcert -alias myKey -keystore store.jks
but i didn't found Android Signing Certificate SHA-1
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
Try this command. Your debug keystore is always present in /home/<username>/.android and ~ is just a shorthand for /home/<username>.
If your SDK is installed properly, there should be no issues in running that command. Otherwise, we'll need some more information to find and fix the issue.
If PhoneGap/Meteor has its own set of android bundles, you might want to try something on these lines
keytool -list -v -keystore ~/.meteor/android_bundle/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
You don't have to use the debug certificate, just create a new certificate by following this tutorial and use it to sign your debug and release versions of the app.

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

keytool for Android debug key giving garbage value

I am using macbook
I typed below code on terminal
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore
and end up with
0???|???*?H??
071
0 UUS10U
450329083337Z071
0 UUS10U
?0?roid ?H??0?"0
??&{??#u???_??R??M?C? ?ߔ?"??V?L??????X=y???P9,????gq?v-b|?x??W5WR?r???
?c+W??NWS!P??????ʈl??SO?̡E??]???wO???OhMⳳӾ?៎m???et???A?K?8 ]?#??,?l??'N8??WZ?x폻(??҄-y??J??H??]???mD,???>?3?Ð?=ߌh??ib???????p6\??????!00U????W? ?p8+??P?b??0
?rGNh?o(5*?<????x????b??7;1?ƻ?H?L1?>?O~&?O??E??Ӎ?5c?62?? ~?????ܙKv=?E???U?d?.?̶?}?U??ѭ?Q0????G??Jʀ?֯r?????
=g?P??n??s?S?3?\o????kO?_u???9??iv?????5A҈?)9?-??nO?~#Pq?x ???
???-?b(???\?P?xd?Ԩ?#8z8b>SG?z?f??????%?
What is the issue?
I have missed last two word -list -v
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore -list -v
its working now

Google+ Sign in Android Keytool

I am trying to learn Android development and I am having trouble following the Google+ sign in tutorial.https://developers.google.com/+/quickstart/android . I am stuck on step 6e-getting the SHA-1 fingerprint with the keytool.
I don't quite understand what this process is doing. In the command prompt, I have navigated to the Java/bin folder, and when I put in the command:
keytool -exportcert -alias androiddebugkey -keystore <C:/Users/Me/.android/debug.keystore> -list -v
it says access denied.
This command should work:
keytool -exportcert -alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore -list -v

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

Categories

Resources