Question

I have strange situation, where the unsigned version is built... but not the signed APK!

Here is some info about this:

* I use ant, not eclipse.

  • I created the store key in command line by running the following:

    keytool -genkey -v -keystore C:\my.keystore -alias my_alias.keystore -keyalg RSA -keysize 2048 -validity 10000

This placed the keystore in C:\

Now, to sign the apk I use the following command (during the build process):

jarsigner -storepass password -verbose -keystore "C:\Android-Enviroment\my.keystore" -signedjar "C:\Documents and Settings\O\Desktop\Project\bin\project-signed.apk" "C:\Documents and Settings\O\Desktop\Project\bin\Project-release-unsigned.apk" my_alias.keystore -digestalg SHA1 -sigalg MD5withRSA

This cause ONLY the unsigned apk to build: Project-release-unsigned.apk without the Project-signed.apk

So... the questions:

1- Is there is anything wrong of creating the key and/or building the sources?

2- How to debug this? I mean how do I know why the generated key isn't working?!

I'm beginner, so may be the answer is so obvious but I really couldn't figure it out!

Thanks for your help...

Was it helpful?

Solution

Make sure that you clean your project before you try and sign with a new type of key.

To do this you go to Projects > Clean.

Then rebuild.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top