I just went through this exhausting process. I use React Native, so I don’t even use Android Studio if I do not need to start the virtual device. I document this for myself and for everyone who has been traumatized by this experience. This is explicit for the "Download Key" option. Then Google replaces it with Play, so you are not responsible for not losing the one and only key to your states.
Open the android file inside your React Native project in Android Studio. Build it and do whatever you have so that it gives you the ability to create an APK (unsigned or something else). You can also just run it here on VD or on the phone if it is connected. I had to make updates to build them, so you might need to do the same.
First go to "Build" in the menu:

This window will appear:

Click "Create New ..."
A dialog box will appear. Fill out this information. Please note that there are two separate passwords. Remember what you put there later.

Go to the place where you want to save the key. React Native already has a folder called "keystores" in the MyApp> android> application. Select this as the key storage path by clicking the "..." button.

Enter what you want your key to be called. I gave him the same name as the application.
This will return you to the previous dialog box. Fill in the passwords and click "Next."

This will lead you to this dialog where you can choose where to put apk. By default in React Native, it goes to MyApp> android> app> app-release.apk. Click these two checkboxes, otherwise you will have to change some configs or Google Play will reject them. They start unhindered.

Go to this page in the developer panel. Click "Edit Release." It is assumed that you have already created a beta or alpha version. (Not described here).

This will lead you to this page. Drag and drop your apk here or download using the button.

Please google, document this process somewhere! Peaceful!
GenericJam
source share