Android App Signature

Source: Internet
Author: User

The Android app is done or put on a market for everyone to download. There is a charge on Android market. $10 a year. In China, however, there seems to be less need to think about it because there is no Play store on many Android machines. But to be put on the market still need to sign, when using Eclipse development by default is signed by Debug.keystore, but this cannot be put on the Android marketplace. You can generate a *.keystore file on your own computer, and then sign it with this file.

To do this, use the Java keytool command, where Wayne173 is the name that you want to store in the key file,-validity is the number of days to generate the signed voucher yourself. After the-alias and after the password is to remember, when the application is exported to use.

OK, now there are keystore files, so how to export the application of the signature? For Eclipse, the operation is to run the Android Tools--export signed application package, then select the app you want to export, and then, after the next step, select the *.keystore file you just generated. Then enter the password you just set. Next, choose Alias, if not (the first action) you may want to enter manually, and then enter the password. Finally, you can export it.

There are similar actions for Android studio. Slightly different is that after selecting a good item, run Build--generate signed APk

Then select the *.keysotre file that you just generated, enter alias, password, you can also remember the password, and then you can set a password, if you want to remember the password, will let you set a password, for security. Each subsequent operation will enter the password to enter the interface.

Then you can choose the way to export, debug or release, has not studied the difference. And then you can export it.

。。

Androidstudio also has a way to automatically generate each time it runs. The following configuration file needs to be modified.

Modify the Build.gradle under the app,

Write good KeyStore file, password alias, note the following release{} This is called when the release version is generated. If the version of Debug is not working. Releaseconfig the name is his own random, as long as the two uniform on it. About KeyStore file where the problem, I looked for a lot of did not do the instructions, just when I run the error only found that this is to be placed in the app directory.

To modify the runtime is debug or release reference below the figure bar, very clear, do not repeat.

In this way, if the previous test device already has a previous version of this signature, it will prompt you to sign the different, to uninstall before you can install, point is on it.

Android App Signature

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.