Android: Signature error when publishing apk

1

I am following the steps indicated in the following route:      link to sign my APK, but when I upload it to the PlayStore, it sends me a message that says: You uploaded an APK file without a signature. You must create a signed APK file .

I have already generated it several times and I do not know what else to do to generate my signed APK.

    
asked by Grover Vásquez 06.04.2017 в 02:34
source

2 answers

1

You can find the information in the documentation:

SIGN YOUR APP!

First of all you need to obtain a production Keystore to sign the application, that is done using the utility keytool this is an example:

keytool -list -keystore your_keystore_name

keytool -list -v -keystore your_keystore_name -alias your_alias_name

But now for greater ease you can use this method:

Sign your build of version (If you want to create a new keystore, click Create new.)

With the .keystore file you get you must sign your application, from the Android Studio menu you can do it, it will require the path of your keystore:

    
answered by 06.04.2017 в 18:02
1

I leave you the same process but in command line for Linux:

Generate key:

keytool -genkey -v -keystore my-release-key.keystore -alias alias_keystone -keyalg RSA -keysize 2048 -validity 10000

Sign existing apk:

jarsigner -verbose -sigalg SHA256withRSA -digestalg SHA1 -keystore llave_generada_antes.keystore android-armv7-release-unsigned.apk alias_keystore

Change the name of the apk:

zipalign -v 4 android-armv7-release-unsigned.apk NombreApp.apk
    
answered by 07.04.2017 в 09:39