Release Android
Navigate to that directory by using the command $ cd /android/app and use the keytool command with sudo permission as shown below
$ sudo keytool -genkey -v -keystore my-release-key.keystore -alias my-key-alias -keyalg RSA -keysizeEdit the file android/gradle.properties, and add the following (replace ***** with the correct keystore password, alias and key password)
MYAPP_RELEASE_STORE_FILE=my-release-key.keystore
MYAPP_RELEASE_KEY_ALIAS=my-key-alias
MYAPP_RELEASE_STORE_PASSWORD=*****
MYAPP_RELEASE_KEY_PASSWORD=*****$ react-native run-android --variant=releaseThe generated APK can be found under android/app/build/outputs/apk/release/app-release.apk, and is ready to be distributed.
Last updated
Was this helpful?