Cannot install .apk on Android signed with my own keystore

Hi all,

when I’m using android debug key everything works, but today I’m preparing to publish my game and I’ve created my own keystore using this command:

keytool -genkey -v -keystore my-release-key.keystore
-alias alias_name -keyalg RSA -keysize 2048 -validity 10000

(http://developer.android.com/tools/publishing/app-signing.html)

And when I’m signing app with this keystore I can’t install it on my android device.

I’m just getting error that app cannot be installed (yes I’ve deleted old app before installation).

Help please!

Just to make sure, when you hit the Build with Corona SDK you are selecting your custom keystore and keyalias on the build dialog and you are not trying to hand sign the apk using jarsigner…

What is in the adb logcat?

Rob

12-07 13:01:25.935: E/PackageParser(2259): Package pl.mk.GoldFish has no certificates at entry AndroidManifest.xml; ignoring!

that’s the error in logcat.

Can you post a screen shot of the Corona Build dialog box just before you click on the build button?

Do you see where they keyalias is “mykey”?  When you generated the keystore you named it alias_name (-alias alias_name ).  These have to match and the password has to match when it asks for it.

Rob

I’ve created new keystore with the same name and alias name and it’s working! Thanks!

Fantastic

Just to make sure, when you hit the Build with Corona SDK you are selecting your custom keystore and keyalias on the build dialog and you are not trying to hand sign the apk using jarsigner…

What is in the adb logcat?

Rob

12-07 13:01:25.935: E/PackageParser(2259): Package pl.mk.GoldFish has no certificates at entry AndroidManifest.xml; ignoring!

that’s the error in logcat.

Can you post a screen shot of the Corona Build dialog box just before you click on the build button?

Do you see where they keyalias is “mykey”?  When you generated the keystore you named it alias_name (-alias alias_name ).  These have to match and the password has to match when it asks for it.

Rob

I’ve created new keystore with the same name and alias name and it’s working! Thanks!

Fantastic