Can no longer build on Android: Key Store problems

Hi all,

I was able to build Android just fine previously, but today I got an error with the android debug key.

I tried to uninstall and reinstall various versions of JDK 32 bit to no avail. I am now stuck with an error:

The password for the Key Store located at C:\Program Files (x86)\Corona\Resources\debug.keystore was not valid, or the Key Store was not valid.

It then prompts for a password, but “android” is not valid.

Currently I have:

Corona Simulator 2017.3184 

JDK 1.8.0 151 (32 bit)

JDK 1.8.0 152 (32 bit)

JRE 1.8.0 151 (32 bit)

JRE 1.8.0 152 (32 bit)

Thanks in advance for any help.

Windows shouldn’t prompt you for the password when using the debug keystore.  Can you try and remove all versions of Java and just install the latest Java JDK? (The 64 bit version works with 3184).

Rob

Hi Rob,

Thanks for the response. I have installed jdk-9.0.1 (64 bit) and uninstalled all other versions of Java.

Now I get the following error: The password for the alias was not valid, or the Java JDK was not found. androiddebugkey

Then it prompts for password again, and repeats the above error message.

Edit: Just tried with a generated keystore, and still get the same error, and won’t recognize password that I selected. So I’m guessing it is not finding JDK for some reason?

Are you sure this path is correct?

C:\Program Files (x86)\Corona\Resources\debug.keystore

It should be more like C:\Program Files (x86)\Corona Labs\Corona\Resources\debug.keystore.

Rob

Since I uninstalled the old JDKs it no longer gives me that path. Now the error is just 

Just now I also installed Corona Simulator 2017.3184 and jdk-9.0.1 (64 bit) on a fresh computer (never had either of those installed) and I get the same error.

So I installed jdk-8u151-windows-x64.exe and now it works and I can build again.

No idea why or how, but it works.

I had this exact same problem yesterday, and after a bit of frustration, I walked away for a couple of hours.  I came back, tried again, and it worked.  I made no changes, no reboots, so I am not sure what happened or why it worked again.  I am writing it off as something on the back end, but have no proof.

Windows shouldn’t prompt you for the password when using the debug keystore.  Can you try and remove all versions of Java and just install the latest Java JDK? (The 64 bit version works with 3184).

Rob

Hi Rob,

Thanks for the response. I have installed jdk-9.0.1 (64 bit) and uninstalled all other versions of Java.

Now I get the following error: The password for the alias was not valid, or the Java JDK was not found. androiddebugkey

Then it prompts for password again, and repeats the above error message.

Edit: Just tried with a generated keystore, and still get the same error, and won’t recognize password that I selected. So I’m guessing it is not finding JDK for some reason?

Are you sure this path is correct?

C:\Program Files (x86)\Corona\Resources\debug.keystore

It should be more like C:\Program Files (x86)\Corona Labs\Corona\Resources\debug.keystore.

Rob

Since I uninstalled the old JDKs it no longer gives me that path. Now the error is just 

Just now I also installed Corona Simulator 2017.3184 and jdk-9.0.1 (64 bit) on a fresh computer (never had either of those installed) and I get the same error.

So I installed jdk-8u151-windows-x64.exe and now it works and I can build again.

No idea why or how, but it works.

I had this exact same problem yesterday, and after a bit of frustration, I walked away for a couple of hours.  I came back, tried again, and it worked.  I made no changes, no reboots, so I am not sure what happened or why it worked again.  I am writing it off as something on the back end, but have no proof.