Phonegap non debug mode and signing with license k

2020-07-11 06:37发布

问题:

I've completed a app in phonegap and would like to publish this on the google app store. Every time I download the apk file its in debug mode. How do I go about signing it with a key or keystore to get this to upload into google play as google will not upload it into my account in debug mode.

I'm doing something wrong but can not see how in build.phonegap.com you can sign the app?

Please help

Thanks

回答1:

Use this command from the terminal or command prompt to generate keystore file:

keytool -genkey -v -keystore myAppKey.keystore -alias myAppKey -keyalg RSA -validity 10000

This will generate myAppKey.keystore file.

That you have to upload at build.phonegap.com site under your application settings. There you will get signing settings so add your keystore and then select that signing key for your application.

By this phonegap will regenerate android builds and you will get APK which will be used to publish in the google play market.

REFERENCE :

how Google suggests creating an Android keystore



回答2:

Getting the illegal option too - something about copy/pasting from the post above is causing that. If you delete the '-' characters and type them manually using the '-' on your keyboard then it works :)