Phonegap CLI app is quite handy and easy to use, but it’s a just a nightmare if you wanna to sign a package for the a store.
The most handy solution that I found involves android studio. Basically once imported the project, you may use the android studio interface to build and sign your packages.
The first step is to import your project into android studio.. That’s quite easy and it’s described in the first steps written in this blog post:
Once your project is imported you can sign the package just pressing BUILD> Generate Signed APK. Then you select your key store or you create a new one if you don’t have any.
Enter your key store password, choose or create a key (a keystore can contains several keys) and finally you set the password for the key itself.
Press the next button a couple of time and the process will start! 😀 Enjoy!