Google map in android by using keytool - android

I am going type the below command to get the information of keytool
keytool -list -v -keystore “C:\Users\key\.android\debug.keystore” -alias androiddebugkey - storepass android -keypass android
however, it said my key file is not exist.
at sun.security.tools.KeyTool.doCommands(KeyTool.java:738)
at sun.security.tools.KeyTool.run(KeyTool.java:340)
at sun.security.tools.KeyTool.main(KeyTool.java:333)
Btw I am using key in my user name, I dont know it is related or not.
Please help me if You know what happen. Thanks.
I have used the highest premission to run cmd but it is the same result.
Here are the snap shot about the path of keytool and androiddebugkey
http://postimg.org/image/xew43joon/
http://postimg.org/image/hwbrj0d5h/

Its Simple.Try replacing your double quotes “ and ” with ". They are different in command prompt.

i have one more solution to this problem. Simple press Ctrl+shift+Right Click you will get option Open command window here open Command Window . Do all this where your debug.keystore file exist & paste this line keytool -list -v keystore debug.keystore and it will ask for password Enter android as default Password. Imean to say follow this steps You will surely get rid of your problem.Its working From myside.Hope this will solve your problem.

Related

Unable to get the SHA-1 key through terminal

I tried to get my SHA-1 key by using the terminal but I don't know what problem is there, can anyone help me with this? I know how to get sha-1 key in android studio by signing report, but I want to generate in terminal.
Here is what I got when I run the command, I tried this answer but got nothing: how to get sha1 of android app in Vs code
above is my cmd. It is saying that it is an illegal option.
I have my Java bin directory here C:\Program Files\Java\jdk-14.0.2\bin and debug.keystore here: C:\Users\91819\.android
Put a space between "C:\Users\91819\.android\debug.keystore" and -alias
open the Project folder in VS code
Open the Terminal
Enter the following cmd and enter
keytool -list -v -keystore "C:\Users\yourusernamehere\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
Replace yourusernamehere to your windows user name
you will get the SHA1 and other details.

Android Map Certifivate Fingerprint. (MD5):

So I am trying to do a map application on android.
I wrote this code on my mac os terminal to create Certificate fingerprint
keytool -list -alias androiddebugkey -keystore ~/.android/debug.keystore -storepass android -keypass android
code generate:
(MD5): C9:C1:40:66:40:07:D0:8C:FF:44:A3:7D:F4:73:57:4B
I don't know why but code generate MD5 not SHA-1
and I understand I need 20 character finger print but my terminal generated 16 character.
if my fingerprint is wrong how can I create true one. If its true than how can I create Api key for map from developer.google.com
If do you have any clue please help. Thanks
Add -v in the end of the keytool command that you gave. It might look something like this.
keytool -list -alias androiddebugkey -keystore ~/.android/debug.keystore -storepass android -keypass android -v
UPDATE:
I answered somewhat related problem like this before, you might get an idea from it if my answer is not enough for you. :)
How to/Error in declaring google-play-services-component
Install plug in eclipse
http://keytool.sourceforge.net/update
Go to eclipse -> Help -> Install new software paste above link
and install it
and then open keytool in ecipse open keystore option will be provided
it will give you SHA1 finger print.
(keytool window will be opened beside errorlog and logcat
click drop down and then androiddebugkey click it you will have all the info there)

Access denied when obtaining android md5 fingerprint

When obtaining my md5 fingerprint for an Android app I have encountered problems when entering the keystore command on both the cmd and jdk bin prompt:
keystore is an invalid command
In the cmd I got this error,which I researched and found that it means my keystore path is incorrect.So I double checked my path and it was correct and found a tutorial explaining to enter the same command through the jdk bin cmd prompt:
Access denied
key store address is:
C:\Users\Brian\.android\debug.keystore
The command I'm using is as follows:
keytool -list -alias androiddebugkey -keystore C:\Users\Brian\.android\debug.keystore -storepass android -keypass android
What are you trying to obtain.
Maby this answer can help
https://stackoverflow.com/a/14042038/928591
I see what your problem is, you are trying to obtain a debug key but you specify a path.
but try to just copy paste this commnad without modifying it.
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
it worked for me to obtain my debug key for a facebook app.
I could be wrong about this but I think this should work
Edit
Did some digging, the keytool comes with the java jdk. like commonsware answerd here
so do you have the JDK or the SDK installed is my next question.
Edit (another)
to answer you question in the comment take a look here.
http://docs.oracle.com/javase/tutorial/essential/environment/paths.html
finale update
this is the last update for this particular answer.
Browse to the JDK folder and execute the command from that directory.
kind regards

how to get android:apikey

How to get the android:apikey for googlemap com.google.android.maps.MapView. i searched it but could not understand any of the articles. can someone please explain me how to get that key. thankyou
in command prompt set your jdk path ...
like,
C:/program files/java/jdk6/bin>
type
keytool -v -list -alias androiddebugkey -keystore "C:\Documents and
Settings\Gaurang.android\debug.keystore"
and check you debug.keystore path and hit as a below...
C:/program files/java/jdk6/bin >keytool -v -list -alias androiddebugkey
-keystore "C:\Documents and Settings\Samir\ .android\debug.keystore"
and android as a password
then copy MD5 Figerprint and add go to below link...
https://developers.google.com/android/maps-api-signup
Get-Map-Apikey
go to jdk path using command prompt :
cd java\jdk1.6.0.21\bin
then execute keytool command using this :
keytool.exe -list -keystore "c:\Documents and Settings\admin\.android\debug.keystore"
then android as password: and press enter , you ll get your api key
Basic Requirement is to have android-sdk and java. You will be needed debug.keystore.
Now the Following is a website which will give you A to Z info..
http://mobiforge.com/developing/story/using-google-maps-android.
You can usually find the Keytool.exe from the "C:\Program
Files\Java\YOUR VERSION\bin" folder
Keytool.exe will help you in Generating MD5 fingerprint.
signup link for android map api key 'https://developers.google.com/android/maps-api-signup' is not working.
showing 'Could not connect to remote server' in iframe above the fotter of the page.did any one worked on it recently?

debug.keystore opening with asking Open with promp

Hi from since morning i am trying to get MD5 finger print for Google API, Key but not able to get it,the main problem is i changed properties of debug.keystore file to Open With Microsoft Word
so whenever i am trying to get it from command prompt it opens in MS-Word in encoded format.
Please help me how can i get it.
Thanx in advance.
This command line command also opens MS Word?
keytool -list -alias androiddebugkey -keystore .android/debug.keystore -storepass android -keypass android

Categories

Resources