S
S
ShanderYO2014-07-18 17:24:38
Android
ShanderYO, 2014-07-18 17:24:38

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

3 answer(s)
S
ShanderYO, 2014-07-21
@ShanderYO

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.

S
Sergey Lerg, 2014-07-19
@Lerg

Show what commands you enter.

A
almax1989, 2015-03-19
@almax1989

A similar problem - there is an application file compiled via android sdk, it also cannot be signed.
Can you describe in more detail the solution to this problem using eclipse?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question