Problem generating APK and showing Sha1 using console

1

Good day, some days ago I formatted my PC and saved the keys (.jks) to be able to generate my applications from the store again, the problem is that when I try to generate them I get the following message

According to the message I alter or forget my key but I just copy and paste it in a folder.

Another problem I have is trying to get the code sha1 by console, this problem is for my new and old keys, this message comes out

I am worried and a little stressed because I have researched all over the internet and I can not find how to solve this problem, I hope you can help me with some idea to solve it In advance, Thank you very much

    
asked by Alvaro Fabian M 17.01.2018 в 18:44
source

1 answer

1

Regarding the first error:

  

Keystore was tampered with, or password was incorrect

It is important to add the correct password that you initially defined for your Keystore, otherwise you will not be able to access the properties of the Keystore.

The second error

  

java.util.IllegalFormatConversionException: d! = java.lang.String "

I see that you use Spanish language and sometimes this error occurs when you do not use English language?, in this case it defines the English language:

-J-Duser.language=en

and then the commands you want, example:

keytool -J-Duser.language=en -list -keystore archivoKeystore...............
    
answered by 17.01.2018 / 19:18
source