Android studio package and release, and obtain Android signatures.

Source: Internet
Author: User

Android studio package and release, and obtain Android signatures.

This feeling is very important, especially the acquisition of signatures. because I wrote it to Baidu map, I felt that this should be written in front, and signature is also required.

First, let's talk about how Android studio is packaged:

The blogger created a packaging project.

Let's take a look at the directory structure first, because it is different from Eclipse during packaging and can be customized. It is best not to use the default directory structure.


Okay. Let's see how to pack it.


Location, account password, and alias of the signature file


Here, the signature should be stored in the root directory of the project. If it is developed by one person, it is not very confidential. The others are based on the actual situation.

Because it is a new key, the second option cannot be used.

The following illustration


If not, the OK option cannot be clicked.


Click create to display the following interface. It is not difficult to use English.


Select the path according to the above root directory.


As seems to be in the jks format by default, but Eclipse looks like it is in the default keystore format, but the encryption method is different, and others do not affect

After confirmation, it will be automatically supplemented if it is returned to the original interface.


You can choose to record the password for later convenience.


Here I want to emphasize that the above is the location where the apk package is stored, the second is the packaging method, and the third blogger has never used



This is the default directory structure. You can check the first image to see where the directory structure is. It will be loaded in as and will not be hidden, if there are few, it would be fine. If there are more, this will take up a large part of the directory structure, so it is best not to select this directory structure. Where should we choose?

In fact, as has long been thought of for you, and directory agencies have built it for you.


You can select apk directly. As for the packaging method, you can follow the default method. The release can be used. The following describes why.

OK. continue to the next step and check the result.



Here there are two installation packages, which can be translated into English directly. One is signed and the other is unsigned. If there is no signature, the package cannot be used, that is to say, the above method is release, why not select debug, debug does not sign by default, and the format validation of some file images is relatively loose, there are some strings. naming verification for xml files or other xml files is not strict and does not require forced compilation.

In turn, let's take a look at the current directory structure.


Because the signature is passed, and the blogger records the password, it will be convenient to pack it later. Let's take a look at what is as more powerful than ec.


It is comprehensive, such as clean, debug, and release. If there are more packages in the future, we will know the benefits. Now we have one, but it is relatively convenient.



Double-click release to package and build successful.

Next, let's take a look at how to obtain the signature. The blogger put the signature file under the root directory for convenience.


Enter a password and no cursor is displayed.


All signature information can be found



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.