Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debug keystore won't work

I'm trying to use my debug keystore so I can get a key for a map view, but when I try and use it, it comes up with this

Illegal option:  B:\Fabian\.android\debug.keystore
keytool -list [OPTION]...

Im ussing this:

keytool -v -list -keystore "C:\Users\MyPcName.android\debug.keystore"

When I try to use:

keytool -list -alias androiddebugkey \ -keystore <path_to_debug_keystore>.keystore \ -storepass android -keypass android

it comes up with

C:\Program Files\Java\jdk1.7.0_04\bin>keytool -list -alias androiddebugkey \ -k
ystore B:\Fabian\.android\.keystore \ -storepass android -keypass android
Illegal option:  \
keytool -list [OPTION]...

Lists entries in a keystore

Options:

 -rfc                            output in RFC style
 -alias <alias>                  alias name of the entry to process
 -keystore <keystore>            keystore name
 -storepass <arg>                keystore password
 -storetype <storetype>          keystore type
 -providername <providername>    provider name
 -providerclass <providerclass>  provider class name
 -providerarg <arg>              provider argument
 -providerpath <pathlist>        provider classpath
 -v                              verbose output
 -protected                      password through protected mechanism

Use "keytool -help" for all available commands
like image 214
FabianCook Avatar asked Jan 17 '23 10:01

FabianCook


1 Answers

Try giving keytool path from gre. It worked for me.

C:\Program Files\Java\Jre7\bin>keytool -list -alias androiddebugkey -keystore
 "C:\Uers\Akki\.android\debug.keystore" -storepass android -keypass android

If you have installed Jdk 1.7 it will generate SHA1 key which will not work for that use -v

C:\Program Files\Java\Jre7\bin>keytool -v -list -alias androiddebugkey -keystore "C:\Uers\Akki.android\debug.keystore" -storepass android -keypass android

like image 123
Akshay Purey Avatar answered Jan 26 '23 19:01

Akshay Purey