Hi, I’m trying to build an android application from Windows for the first time, and I can not build. I get the following error:
The password for alias androiddebugkey was not valid, or the Java JDK was not found
I’ve checked all the steps, and they all seem right: I have the Java SDK, the JAVA_HOME variable, and the PATH pointing to the previous one… I am using the androiddebugkey you provided, with password android…
I did delete the debug.keystore file, then relaunched corona. It rebuilt it again. didn’t solve the problem.
Any suggestions. [import]uid: 31039 topic_id: 6814 reply_id: 32736[/import]
We’re not able to reproduce your password failure issue with the debug keystore. This message is normally displayed for user’s that are using their own keystore with the wrong password. I’m assuming that you are using the “debug.keystore” that has come with the trial version.
When such a failure occurs, an error message should be logged to the console window (aka: DOS box), which reads “Corona Simulator.exe” on the window’s title bar. Can you give us that error message please?
Also, please verify that your “Build for Android” window’s Keystore field is set to the following file and path (assuming that you’ve installed the Corona SDK to the default directory)…
“C:\Program Files (x86)\Ansca\Corona SDK\Resources\debug.keystore”
[import]uid: 32256 topic_id: 6814 reply_id: 32997[/import]
you are correct that I am using the trial version debug.keystore, password ‘android’. have never used anything else.
the console windows reports: jarsigner returned: 1
the build for window keystore path is greyed out but I can see that it is set to at least down to the resource folder. browse function does not let me change this.
I have installed Corona to the default path as you mentioned. The debug.keystore file is at this location.
[import]uid: 31039 topic_id: 6814 reply_id: 33260[/import]
I suspect that there is a version mismatch between your JDK (Java Development Kit) and your JRE (Java Runtime Environment) installed on your computer. Can you tell me the versions of your JDK and JRE please? That should help us to identify the issue and recommend a solution.
Please do the following:
Go to your Windows Control Panel.
Click the “Uninstall a program” link. (Assuming that you’re using Windows 7/Vista)
A list of all installed programs should be displayed.
Find items in this list that start with the word “Java”.
Please give us a list of all “Java” items installed exactly as they appear in this list, including version numbers.
For example:
Java™ 6 Update 24
Java™ SE Development Kit 6 Update 24
Thank your for your patients.
[import]uid: 32256 topic_id: 6814 reply_id: 33280[/import]
Can you tell me what your system’s PATH environment variable is set to please?
The major Java change that was made in Corona SDK build 484 is that the software no longer requires that you set the JAVA_HOME and PATH environment variables. The new version fetches the JDK path via the registry instead.
That said, when the software looks for Java tools such as the jarsigner.exe, it will search for such tools based on the system’s PATH environment variable “first” before using the JDK path found in the registry. So, perhaps your PATH environment variable is referencing old versions of Java tools.
Perhaps a quick test that you can do is to set the JDK’s “bin” path to the front of the PATH environment variable’s string. For example:
PATH=“c:\Program Files (x86)\java\jdk1.6.0_24\bin;…”
[import]uid: 32256 topic_id: 6814 reply_id: 33304[/import]