Android: Failure [INSTALL_PARSE_FAILED_CERTIFICATE_ENCODING]

This is the error I got when I tried that…
dyosuas-macbook:~ Dan$ jarsigner -keystore “./CoronaSDK/Resource Library/Android/debug.keystore” /Users/Dan/Desktop/myGame.apk androiddebugkey

Enter Passphrase for keystore:

jarsigner error: java.lang.RuntimeException: keystore load: /Users/Dan/CoronaSDK/Resource Library/Android/debug.keystore (No such file or directory)
After attempting to install I obviously got the original error again. So an issue with the jarsigner tool then? [import]uid: 93901 topic_id: 35574 reply_id: 142018[/import]

Once I got java on that virtual machine a few days ago and built, there were no problems then going to dropbox and downloading the apk.

Thanks for your continued help through this! [import]uid: 93901 topic_id: 35574 reply_id: 142804[/import]

Your path to the debug.keystore file is wrong. You need to set path…
>> “./CoronaSDK/Resource Library/Android/debug.keystore”
…to where you Corona SDK is located. [import]uid: 32256 topic_id: 35574 reply_id: 142046[/import]

Sorry, I’m not so good with the terminal… One of those slashes was a backslash. Says, warning: the signer certificate has expired. [import]uid: 93901 topic_id: 35574 reply_id: 142048[/import]

Oh good! I’m glad you got it working! [import]uid: 32256 topic_id: 35574 reply_id: 142808[/import]

>> Says, warning: the signer certificate has expired.

Corona’s “debug.keystore” has actually expired, so that’s okay and normal. That warning won’t prevent an Android device from installing the APK; only prevents you from publishing it. So, go ahead and try to install it on your device.
[import]uid: 32256 topic_id: 35574 reply_id: 142049[/import]

Unfortunately I’m getting the same error. Anything else I could have done wrong before this point? [import]uid: 93901 topic_id: 35574 reply_id: 142050[/import]

Bummer. This means that there is something wrong with your jarsigner. So, it’s definitely a JDK issue. This is an easy issue to work-around on Windows, but I’m not quite sure what can be done on Mac.

I still suspect that you have JDK 7 on your Mac and the command line is grabbing its jarsigner tool instead. In your Finder window, try going to the following directory…
//System/Library/Java/JavaVirtualMachines

You should see a “1.6.0.jdk” file in that directory.
If you also see a “1.7.0.jdk” file, then that will be a problem.
[import]uid: 32256 topic_id: 35574 reply_id: 142124[/import]

There is only a 1.6.0… [import]uid: 93901 topic_id: 35574 reply_id: 142147[/import]

I have access to another mac, which also has a windows 8 virtual machine. Can I use my corona license on either of these? [import]uid: 93901 topic_id: 35574 reply_id: 142153[/import]

Yes, you can install the Corona Simulator on up to 2 machines at a time. If you want to transfer your license from one machine to another, then you’ll want to “deauthorize” from the old machine first via the Corona Simulator’s “Preferences” window. [import]uid: 32256 topic_id: 35574 reply_id: 142174[/import]

Once I got java on that virtual machine a few days ago and built, there were no problems then going to dropbox and downloading the apk.

Thanks for your continued help through this! [import]uid: 93901 topic_id: 35574 reply_id: 142804[/import]

Oh good! I’m glad you got it working! [import]uid: 32256 topic_id: 35574 reply_id: 142808[/import]

Once I got java on that virtual machine a few days ago and built, there were no problems then going to dropbox and downloading the apk.

Thanks for your continued help through this! [import]uid: 93901 topic_id: 35574 reply_id: 142804[/import]

Oh good! I’m glad you got it working! [import]uid: 32256 topic_id: 35574 reply_id: 142808[/import]

Once I got java on that virtual machine a few days ago and built, there were no problems then going to dropbox and downloading the apk.

Thanks for your continued help through this! [import]uid: 93901 topic_id: 35574 reply_id: 142804[/import]

Oh good! I’m glad you got it working! [import]uid: 32256 topic_id: 35574 reply_id: 142808[/import]

Hi again, we recently encountered an unrelated issue using windows. Using the latest public release of Corona on both mac and windows, we get a runtime error on windows, that we don’t get on mac running the exact same project. Anyway I’ll create a separate thread for that issue if I can’t fix this problem instead.  Any other ideas of how to fix the jarsigner issue? There is no “1.7.0.jdk” in the folder: //System/Library/Java/JavaVirtualMachines.'s>

Could it be anywhere else?

Thanks.

… Also I just tried building a sample app with the adk, and was able to do that successfully. I did have to generate a new debug.keystore to build with eclipse, and I know you said that that shouldn’t be the problem, but tried using that key anyway, and it didn’t work. Any ideas?

Hi again, we recently encountered an unrelated issue using windows. Using the latest public release of Corona on both mac and windows, we get a runtime error on windows, that we don’t get on mac running the exact same project. Anyway I’ll create a separate thread for that issue if I can’t fix this problem instead.  Any other ideas of how to fix the jarsigner issue? There is no “1.7.0.jdk” in the folder: //System/Library/Java/JavaVirtualMachines.'s>

Could it be anywhere else?

Thanks.