APK signed with a certificate that is not yet valid

29,499

Solution 1

Solved it by changing the system date of my computer. I set it to today - 2 days and created a new keystore, tried to upload and it worked.

Solution 2

I ran into this gotcha but my solution was different. My system time was valid, but maybe it was several minutes off. Anyway if you run into this message but appear to have a correct system time, here are two things I did which worked

  1. Wait several minutes (e.g. search stackoverflow for this)
  2. Rename the .apk.

Then try to upload again. It just worked for me the second time.

Another issue I ran into was ant release reporting that the keystore was tampered with or my password was incorrect when I signed my app. All I did was retry a second time and ant release just went through.

Solution 3

I solved this problem by waiting ~14 hours. Then the upload worked without changing anything in the apk. Hope this can help someone.

Solution 4

I ended up fixing this issue by fixing the time zone in my clock settings.

Solution 5

Changing the days in your system will not fix it. This problem is your windows (or other OS) timezone.

Correct your time zone:

enter image description here enter image description here

Share:
29,499
Emkey
Author by

Emkey

I love computers.

Updated on August 13, 2022

Comments

  • Emkey
    Emkey almost 2 years

    I'm trying to publish an app to google play, and it won't allow me, it says:

    You uploaded an APK signed with a certificate that is not valid. 
    You need to sign tour APK with certificate that is currently valid.
    

    Screenshot:

    enter image description here

    How do I remedy this error?