APK signed with a certificate that is not yet valid
Asked Answered
T

8

30

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?

Tale answered 2/11, 2012 at 8:38 Comment(2)
create a new certificate/keystore. Somehow your apk has a certificate that is only valid in the future. (aka, the start date is currently in the future).Caulescent
Thanks for your response @Doomsknight, where do I set the start date?Tale
T
58

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.

Tale answered 2/11, 2012 at 9:44 Comment(5)
So was your system date set wrong to start with? Setting the correct date and time (zone) should work. :) +1Caulescent
actually you need to change date and time before you will create certificate itself(not sign the apk), so Google play console will be able to compare start and end date of your signed(certificated) apk. This error happens when you are in different time zone than Google play server, i.e. +11hrs.Exaltation
This is very bad solution but worked. actually the reason behind you have wrong timezone in urs system which is not yet reached at your point. you need to fix your timezone and correct the date & time of your system.Pipsissewa
What time zone you use, I try change timezone UTC+0, time -3 hours not even work.Ectoblast
Not working for me. i tried setting the time zone 2 days before creating an APK from Unity and uploading it to Google Play. That error ruined my day!Paniculate
D
11

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.

Deltoro answered 14/3, 2013 at 21:1 Comment(0)
M
5

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

Mariettamariette answered 10/7, 2013 at 8:41 Comment(0)
C
5

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

Constanceconstancia answered 3/1, 2014 at 8:55 Comment(0)
J
2

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

Joellenjoelly answered 26/5, 2016 at 19:29 Comment(1)
this actually works pretty fine. My Time zone was set as Canada's, Changing back to Pakistan's Worked fine.Saponaceous
R
1

just wait a minute or two in most cases. The time is probably just slightly off.

Refulgent answered 1/11, 2014 at 20:22 Comment(0)
R
0

I can't say the others are incorrect but they're mostly describing the same thing. The time stamp used when signing your APK was not "correct" for whichever Google uses to validate. Therefore you create signed packages in the past or future from Googles perspective, most likely future as the message indicates future tense "is not valid yet"

It's impossible to give a fixed amount of time by which we all must update our clocks by so what worked best for me was to just wait until it works.

Russon answered 6/10, 2015 at 16:44 Comment(0)
S
0

Just adjusting the app's availability from 25 years to 24 will solve the problem enter image description here

Subadar answered 18/10, 2022 at 10:30 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.