Pushing signed APK to device - FAIL!

So I’m supposed to be releasing my game today, but I’ve run into a problem with the signed APK.

I have created a keystore with a password, and an alias with a password. I have also added the public key provided by Google.

So what is the big problem here? I have been reading around and found people posting solutions from everything to changing environment variables, to reinstalling older version of Java and even reinstalling the entire operating system! (no F’ing way am I doing that last one). Some of these solutions have worked for some people and not for others.

Surely the causes of this issue cannot be so diverse that there is no consistent solution? Anyway, thought I’d just ask what the MOST likely cause would be before I rip my hair out and bust my laptop over my knee.

I’ve installed the latest Android SDK, I’ve updated to the latest version of Unity and I’ve even tried reverting to Java kit 6 - to no avail!

The console is spewing this out at me when it fails. I don’t know what it means by “NO_CERTIFICATES” because I copied the code I was given from the developer console… What the hell is going on? Any help would be appreciated.

Installation failed with the following output:
pkg: /data/local/tmp/Package.apk

Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]

1428 KB/s (31444484 bytes in 21.490s)

UnityEngine.Debug:LogError(Object)
PostProcessAndroidPlayer:UploadAndStartPlayer(String, String, String, String, String, Boolean, Boolean, Boolean) (at C:/BuildAgent/work/14194e8ce88cdf47/Editor/Mono/BuildPipeline/PostProcessAndroidPlayer.cs:883)
PostProcessAndroidPlayer:PostProcess(BuildTarget, String, String, String, String, String, String, BuildOptions) (at C:/BuildAgent/work/14194e8ce88cdf47/Editor/Mono/BuildPipeline/PostProcessAndroidPlayer.cs:465)
UnityEditor.HostView:OnGUI()

Tried getting rid of the CLASSPATH variable, which did nothing. Also tried installing the APK from the device. No joy!

This thing does not want to be installed when signed!

You have to create a new keystore with the older JDK .

http://forum.unity3d.com/threads/152348-Signing-Ok-for-Store-but-not-for-Users

http://forum.unity3d.com/threads/149365-Failure-INSTALL_PARSE_FAILED_NO_CERTIFICATES-even-after-switching-to-JDK6?highlight=install

Thanks keithsoulasa

I did manage to fix it but I had no idea why it worked after recreating the keystore! I thought I must have just messed something up when I did it the first time! Good to know!