Answer the question
In order to leave comments, you need to log in
Why can't I publish my app on Google Play?
Good afternoon! I'm trying to publish an application on google play written using phonegap. In the bin folder of the android platform, I generated a key using keytools and then signed the Hello-world-debug.apk file with it, after that, when I tried to upload it to google play, I got an error:
"The APK file archive is not optimized. Run the optimization tool, and then try again."
After that, I optimize the file with zipalign, re-upload the resulting file and get the error:
"Some files in the downloaded package do not have signatures or they are invalid. Please create an APK file with a valid signature."
I sign the file again and get the first error again.
Answer the question
In order to leave comments, you need to log in
This is how I generate the key:
keytool -genkey -keystore rp.keystore -storepass Fd34eg -alias rp.key -keypass sdva345FGF -validity 10000
I sign:
jarsigner -keystore rp.keystore -storepass Gdft56gdfDSF -keypass dfgdfg4FFDf rp.apk rp.key
Checking the file:
zipalign -f -v 4 rp.apk rp2.apk
------------------------------------------------ ---
Solved the problem by installing eclipse and doing signing and verification through it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question