Android APK file and generates a signature

Overview

Android apk I believe that every Android developer knows he is doing is:

APK (full name: Android application package, Android application package) is an application package file format used by the Android operating system, for distribution and installation of applications and mobile middleware.

Understand the concept of Android APK Next let's look at how to generate our APK files as well as our signature file it.

Environment Configuration

  • Windows System
  • Android Studio 3.5.3

Create a signature file

If you have created a signature file before you, then you can see the next step.

How to Create

  1. Build our selection in our menu bar.
  2. Select Our Generate Signed Bundle / APK ...
  3. APK choose our project
  4. We create our .JKS file, click Create New
  5. Fill in the relevant information in our interface. - you must fill out a certificate, or be wrong.
  6. Click OK to complete the above steps

So that our .JKS file has been created.

APK generation

After we have successfully created our signature files, we just need to generate our APK on it.

  • Choose our Key store.
  • Then click Next
  • apk Here you can select the debug mode and release mode apk
  • Here I generated signature V1
  • Finally, click Finish to complete our friends

View our signature certificate

Open Terminal bottom of the Android Studio
go to the directory of our signature files
use keytool -list -v -keystore 签名文件you can see what I signed certificate of the.


We packed APK Android project is complete it!

Guess you like

Origin www.cnblogs.com/cao-1/p/12151500.html