Reputation: 311
I have created cordova App using Visual Studio 2015. If I build App in Release mode unsigned APK created. Now I want to deploy the App. How can I create keystore? How can I sign my apk created in Released folder?
Note: I dont have android studio
Upvotes: 1
Views: 7180
Reputation: 2141
I followed MS instructions from here, see section Package and Sign Android app (shown below), and it worked for me.
To sign an Android app for distribution
1.Generate a keystore and provide the information required to create a certificate (private key). For more information, see Signing your applications in the Android documentation.
2.When you have created a keystore, open the res\native\android folder.
3.Open the ant.properties file, and enter information about the keystore and the alias. The Key.store property in ant.properties must specify a relative or absolute path to the certificate file.
4.Put the keystore you created either in the same folder as ant.properties, or in some other location. (For example, for security reasons, you might not want to check the keystore into source control.)
5.Build the Android app.
When you build the app, Visual Studio will sign the package with the credentials you supplied.
Upvotes: 3