Android Studio generates the signed APK
After opening the project, click the project, select the Build menu, and then select Generate Signed APK, as shown in:
Open the generate dialog box:
Select Create new... to generate a new Key. The new Key dialog box is displayed:
First, select the Key storage path.
There may be a BUG. In the pop-up select keystore file dialog box, you must first enter the File name, such as ''. The file suffix name remains unchanged. Then change the Save path (otherwise the name cannot be entered ).
The final path may be like this:E:CODE_ALL_GIT_ALLcncounter-androidkey_storecncounter-android-key.jks
Next, enter the password. It is recommended that it be neither too simple nor too complex. The password in this example is:
cncounter-android
For simplicity, all passwords are set to the same one:
cncounter-android
The validity period is 25 years by default to support your entire APP cycle.
Country Code (XX) should be CN, as shown in:
Click OK to return to the generation page.
Select Remember password and click Next.
If you enter password protection in the pop-up window, you can leave it blank and do not use this protection.
Click OK to go to the next step:
Select release as the release version and debug as the debug version. Select release and click "finish.
Then you will be notified that the generation is complete. You can choose to view it:
The generated aPK is as follows:
You only need to select Generate Signed APK from the Build menu. As shown in:
Because I chose to remember the password last time, I do not need to remember the password here.
Then proceed.