How to specify --key-store-* when building release apk


#1

When producing a release build, you need to specify all --key-store-* options.

build android


#2

Hey @Emeka

Just as the help message states, you need to provide all --key-store-* options, just as you would when building a non-NativeScript Android project in release configuration. Here’s what a sample tns build --release would look like:

tns build android --release --key-store-path "D:\work\MyApp\config\debug.keystore" --key-store-password android --key-store-alias androiddebugkey --key-store-alias-password android

This article on the Android Docs also explains in short how you can generate your own key to sign your applications with:
https://developer.android.com/studio/publish/app-signing.html#signing-manually