help with publishing

hey i am trying to publish for android and i am getting this error when i upload the APK

You uploaded an APK signed with a certificate that expires too soon. You need to sign your APK with a certificate that expires further into the future.

how can i fix this???

Comments

  • RMSRMS Member Posts: 3
    This is probably because your -validity parameter is too short. I think Google requires the certificate to be valid for 20 or 25 years. Try -validity 9125 (9125 days in 25 years) as the parameter with keytool. I have seen some examples with -validity 1000, that's too short.
  • gotyoursgotyours Member Posts: 246
    no it was cause i cut and pasted the code from the web site- when i typed it in ot worked fine, thanks
  • lrtwlrtw Member, PRO Posts: 11

    if you copied and paste from website, how do I fix it? how do re-do it?

  • lrtwlrtw Member, PRO Posts: 11

    nvm, I just opened a terminal and re-do everything to get the keystore. it worked perfectly thanks.

  • cpweducacpweduca Member Posts: 23

    I am having this same problem and been stuck for 3 days now

    I really need help with this error message I get when trying to upload my apk to google play

    "Upload failed

    You uploaded an APK signed with a certificate that expires too soon. You need to sign your APK with a certificate that expires farther into the future."

    I tried everything from making keystore after keystore. Then changing the 10000 to 12000 to 100000.
    I even reinstalled the android sdk again and I still get this error.

    Been stuck on this for 2 days now. Can anyone help?

    Thanks

  • akaomid1akaomid1 Member, PRO Posts: 26

    copy this everyone it will work make sure you copy this and just change the mygame part . shown two times. so just change the mygame parts and it will wrok. I know you think its the same on site its not trust me use this and it will work.

    keytool -genkey -v -keystore mygamee.keystore -alias mygame -keyalg RSA -keysize 2048 -validity 10000

Sign In or Register to comment.