APK signed with a certificate that is not yet vali

2019-01-13 15:29发布

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?

7条回答
放荡不羁爱自由
2楼-- · 2019-01-13 15:48

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

查看更多
成全新的幸福
3楼-- · 2019-01-13 15:48

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.

查看更多
别忘想泡老子
4楼-- · 2019-01-13 15:54

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

查看更多
神经病院院长
5楼-- · 2019-01-13 15:55

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

查看更多
该账号已被封号
6楼-- · 2019-01-13 16:00

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.

查看更多
聊天终结者
7楼-- · 2019-01-13 16:01

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.

查看更多
登录 后发表回答