I have the same problem. When I’m enter the “android” password is says “The password for the Key Store located at C:\Program Files\Corona Labs\Corona SDK\Resources\debug.keystore was not valid, or the Key Store was not valid.” too.
Update JDK 1.6 to the newest version.
Can you explain how to do this?
Richard:
Here is a copy of keystore instructions. Hope this helps.
Procedure
Generating an RSA keypair and self-signed
certificate can be performed from the command line in one shot. With this keypair,
an RSA-Signed Certificate can be created to sign applets.
Generate an RSA keypair:
- Create two directories:
- C:\mykeytools
- C:\mykeytools\keys
- Goto directory C:\mykeytools
- Type:
keytool -genkey -alias myalias -keyalg RSA -validity 365
-keystore keys/my.keystore
- Enter
keystore password: **** mysecret
What is your first and last name?
[Unknown]: www.mobilefish.com
What is the name of your organizational unit?
[Unknown]:Research
and Development
What is the name of your organization?
[Unknown]: Mobilefish.com
What is the name of your City or Locality?
[Unknown]: Zaandam
What is the name of your State or Province?
[Unknown]: Noord-Holland
What is the two-letter country code for this unit?
[Unknown]: NL
Is CN=www.mobilefish.com, OU=Research and Development,
O=Mobilefish.com, L=Zaandam, ST=Noord-Holland, C=NL correct?
[no]: y
Enter key password for <myalias>
(RETURN if same as keystore password):
- File C:\mykeytools\keys\my.keystore is created.
- To view the fingerprints of certificates in the keystore,
type:
keytool -list -keystore keys/my.keystore
You should see and do the following:
Enter keystore password: mysecret
Keystore type: jks
**Keystore provider: SUN
Your keystore contains 1 entry
myalias, 18-mei-2005, keyEntry,
Certificate fingerprint (MD5): D5:14:AB:F5:68:4B:1F:C9:80:8C:3E:95:D7:4D:E1:0E**
Hi Richard,
I agree that you should reinstall JDK6. You wouldn’t be able to get to the Android Build window if the Corona Simulator was unable to find the JDK tool needed to read keystore files, so this issue suggests that the tool is failing to read the keystore file. I recommend that you repair/re-install JDK6.
Regards,
Brent
Thank you, I was able to build and install on my phone.
Alright I have installed JDK1.6 Update 45, I uninstalled the other version I had and restarted, however I am still recieving this error.
I have the same problem. I just bought and downloaded Corona Pro (Build Version 2013.1082) and have built a new Keystore using Java 1.7.0_17-b02. I followed the signing instructions, which by the way need to be updated to reference the correct folder names and cannot build the sample apps for debug or with the newly created keystore.
Hi @ejtstoker,
It appears that you’ve installed JDK7. Please follow the directions in the guide linked up a bit in this thread. 
Your issue is somewhat perplexing. Are you on Mac or Windows? It’s important to note that on Windows, multiple versions of the JDK can coexist on the same machine without any problems. We’ve tested this with both a 32-bit and 64-bit version of the JDK 6 installed and a 32-bit and 64-bit version of the JDK 7 installed as well. Corona will automatically pick up the 32-bit JDK 6 path from the registry and use the correct version.
The only known issue that we have is if the PATH environment variable is set to one of the other JDKs, then the final build step will use the wrong JDK version to sign the APK, causing it to be digitally signed wrong and prevent the app from being installed on an Android device… because Android only supports the 32-bit JDK 6. Oracle/Sun does not set the PATH environment variable when installing the JDK, but I suspect that some 3rd party Java tools do, causing this issue to come up every once in a while.
Best regards,
Brent Sorrentino
ejtstoker,
You should not create a keystore with JDK 7 (ie: version 1.7) because it creates a keystore with an encryption that Android does not support. You see, JDK 6 and JDK 7’s keytools use a different encryption by default. Google requires that you use JDK 6 (ie: version 1.6), which is documented under their System Requirements here…
Josh:
I cleared the computer of all Java 7 or 64-bit JDKs, reloaded JDK 1.6 32-bit and selected RSA as the method when I created a new keystore. I re-installed Corona SDK Pro and still have the same problem. I am running Windows 7 Professional Service Pack 1 (64-bit) with 12GB of memory.
Any additional insights would be appreciated.
Thanks.
Ed
This actually happened to me not to long ago. I run two versions of JAVA. 32 bit jdk 6 for corona and 64 bit jre 7 for minecraft. Anyways I uninstalled all java enviroments through control panel/ program and features. Uninstalled corona, Rebooted,
Installed JDK 6 not JRE 6. Installed Corona and boyaa. Back and operational at least for the debug keystore. This is what solved my problem at least.
Thanks
I thought I did that but I’ll try it again.
Thanks.
My thanks to Method Mobile. After a few uninstalls and re-installs of both JDK 6 and Corona SDK I finally got Corona to build a test app. Now I have to fix my code to accommodate changes in the SDK.
Ed
I’m running windows 7 32bit and I changed my PATH variable but the problem still persists.
I tried this (deselect JRE when installed JDK right) but it didn’t work.
Richard:
Here is what I did to fix this problem.
-
Uninstalled Corona. I even deleted the Program Files (x86)\Corona directory which was empty.
-
Uninstalled all Java JDK
-
Installed Java JDK 1.6.0_45 (the current version)
-
Re-built my keystore using keytool. I made certain that I set the -keyalg setting to RSA
-
Reinstalled the current Corona.
-
Built a test sample for Android and it worked with my newly created keystore.
Hope this helps.
Ed
Hi,
I have this problem too. I have Java JDK 1.6.0_10 installed. Is this the cause of the problem?
Thanks.
I have this problem also and it is extremely frustrating that there is no simple solution. I have a clean build of Windows 7 Ultimate 32-bit straight from MSDN. I have installed Corona SDK. I have thus far tried JDK 1.6 Update 38 and 45, uninstalled and re-installed a number of times (I’ve lost count actually how many times now). I’ve tried JDK first then Corono SDK and Corono SDK first then JDK.
Nothing I try gets past the invalid keystore/password problem. I tried using the debug keystore and generating my own. I’ve never had so much frustration with a development kit.
I’ve tried all of the things that others have reported and tried here, but no luck. The folks that have got it working did so by luck of re-installing bits. Would be nice to have a known fix that works each time.
Any help/suggestions appreciated.
It probably is. I had to uninstall the JDK and Corona. Reinstall Corona, then install JDK1.6.0_45 then it magically recognized my keys (including the debug one).
I had the same problem when I installed JDK – without JRE.
But after I installed JDK with JRE, than Corona, it worked.