> For the complete documentation index, see [llms.txt](https://jaah.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jaah.gitbook.io/documentation/release-android.md).

# 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 -keysize
```

Edit 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=release
```

{% hint style="info" %}
Please try this `$./gradlew clean` if some problem happen
{% endhint %}

The generated APK can be found under `android/app/build/outputs/apk/release/app-release.apk`, and is ready to be distributed.

{% hint style="info" %}
&#x20;Full doc <https://facebook.github.io/react-native/docs/signed-apk-android>
{% endhint %}

{% hint style="info" %}
Usefull doc <https://themanifest.com/app-development/how-publish-app-google-play-step-step-guide>
{% endhint %}
