I made apk by apportable and try to upload apk to android market.
At first when I uploaded the apk says
Upload failed
You uploaded an APK with invalid or missing signing information for some of its files. You need to create a valid signed APK. Learn more about signing.
That's OK. I should sign the apk, so I signed and uploaded
jarsigner -keystore android.keystore -verbose myApk.apk myalias
then market shows this error.
Upload failed
You uploaded an APK that is not zip aligned. You will need to run a zip align tool on your APK and upload it again.
That's OK too. I must zipalign the apk.
zipalign -f 4 myApk.apk myAlignedApk.apk
now I uploaded again, but the first error(missing signing) happens again!!
I think I should do signing -> zipaligning
This procedure is correct.
How can I fix or solve this problem?
Thanks to you
I could investigate the problem deeply.
There is something wrong with signing not zipaligning
sign normally or with -digestalg SHA1
$ jarsigner -keystore android.keystore -verbose myApk.apk myAlias
or
$ jarsigner -keystore android.keystore -digestalg SHA1 -verbose myApk.apk myAlias
it shows the error
$ jarsigner -verify animalparade-release.apk
jarsigner: java.lang.SecurityException: invalid SHA1 signature file digest for assets/se_maoudamashii_magical24.caf
However, sign like this ,
$ jarsigner -keystore android.keystore -sigalg SHA1withRSA -digestalg SHA1 -verbose myApk.apk myAlias
the market shows the error like
Upload failed
Your APK has been signed with multiple certificates. Please only sign it with one certificate and upload it again.
Upload another APK