Upload APK!

I  tried to upload my game apk to the play store,  but the upload failed !

a message says:

“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.”

But in the keytool faile of my app i have set a validity of 100000!

Please Help me!

As per official Android documentation http://developer.android.com/tools/publishing/app-signing.html, please could you try to create a new keystore with validity 10000 (and not 100000) - worth a shot?

I think 99999 may be the max.  Though knowing computers, a value of 32767 or 65535 are more rational max values, as those the largest values you can fit into a 16 bit number.

Still 10,000 days is over 27 years.

Rob

I have created a new keystore with validity 10000,  but the problem remains!

Could you paste the keytool command you are using (using random passwords) please, suspect there is something wrong in it. 

Did you copy paste from the Android page? That usually introduced a line break like following:

keytool -genkey -v -keystore my-release-key.keystore -alias alias\_name -keyalg RSA -keysize 2048 -validity 10000

Yes i copy the keytool command from the Andoid Page:

keytool -genkey -v -keystore my-release-key.keystore
-alias alias_name -keyalg RSA -keysize 2048 -validity 10000

It should be just one line:

keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000

As per official Android documentation http://developer.android.com/tools/publishing/app-signing.html, please could you try to create a new keystore with validity 10000 (and not 100000) - worth a shot?

I think 99999 may be the max.  Though knowing computers, a value of 32767 or 65535 are more rational max values, as those the largest values you can fit into a 16 bit number.

Still 10,000 days is over 27 years.

Rob

I have created a new keystore with validity 10000,  but the problem remains!

Could you paste the keytool command you are using (using random passwords) please, suspect there is something wrong in it. 

Did you copy paste from the Android page? That usually introduced a line break like following:

keytool -genkey -v -keystore my-release-key.keystore -alias alias\_name -keyalg RSA -keysize 2048 -validity 10000

Yes i copy the keytool command from the Andoid Page:

keytool -genkey -v -keystore my-release-key.keystore
-alias alias_name -keyalg RSA -keysize 2048 -validity 10000

It should be just one line:

keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000