简体   繁体   中英

Android: Procedure for Generating Debug build apk's and Release build apk's in Android Studio

In Android Studio, There is two ways of generating APK's - ie Debug build Apk and Release Build Apk. Now Question is how to generate TWO kind of Apk's?

This Question is helpfull to Freshers Android Developers.

Thanks

Debug Build APK:

Generating Debug build Apk's in android studio consists following steps-

Step 1: Open the project which is developed by android studio and Click on " Build Variants" which is present in Left buttom corner of the Android Studio. As shown in Below Image.

在此处输入图片说明

Step 2: Select Debug Option in the list. List contains only two ie Debug and Release. As shown in below image.

在此处输入图片说明

Step 3: To Run Android Application, You will get Debug APK's in the below path of the project

YourProjectName\app\build\outputs\apk\XXXXXX.apk

Release Build APK:

Generating Release build Apk's in android studio consists following steps-

Step1: Open android studio . Build -> Generate Signed APK… . now click on “Generate Signed APK”.

在此处输入图片说明

Step2:

在此处输入图片说明

Click Create new.

Step3:

Fill the details and click ok.

jks key details,It will go back to previous window.

在此处输入图片说明

Click Next, and give the password which you stored in key.

Step4:

在此处输入图片说明

Now click Finish and wait to complete the building process.

在此处输入图片说明

Now apk generated successfully. Click show in Explorer.

在此处输入图片说明

If you need more details please visit and check the live demo http://javaant.com/how-to-make-apk-file-in-android-studio/#.VwzedZN96Hs

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM