Changes

no edit summary
 
Once the development work on an Android application is complete and it has been tested on a wide range of Android devices, the next step is to prepare the application for submission to the Google Play App Store. Before submission can take place, however, the application must be packaged for release and signed with a private key. This chapter will work through the steps involved in obtaining a private key and preparing the application package for release.
[[Image:android_studio_build_variants_menu_1.4.png]]
Figure 62-1
[[Image:android_studio_change_build_variant_1.4.png]]
Figure 62-2
== Creating a Keystore File ==
To create a keystore file, select the Build -> Generate Signed APK… menu option to display the Generate Signed APK Wizard dialog as shown in Figure 62 -3:
[[Image:android_studio_apk_build_keystore.png|The Android Studio Generate Signed APK Wizard dialog]]
Figure 62-3
[[Image:android_studio_configure_release_key.png|Configuring private signing key information in Android Studio]]
Figure 62-4
[[Image:android_studio_release_key_configured.png|Configuring private signing key information in Android Studio]]
Figure 62-5
[[Image:android_studio_apk_generation_wizard.png|Keystore file and key information configured in Android Studio]]
Figure 62-6
[[Image:image248.png]]
Figure 62-7
[[Image:android_studio_signed_apk_generated_1.4.png]]
Figure 62-8
[[Image:android_studio_root_gradle_file2.png|Selecting the module level build.grade file in Android Studio]]
Figure 62-9