Android program released

Source: Internet
Author: User

Android requires allProgramA signature is required. Otherwise, the program will not be installed. During our development process, ADT uses debug keystore and sets it in preference-> Android-> buid. By default, the debug keystore is valid for one year. If you developed an android program from a year ago, the debug keystore may expire and you cannot generate an APK file. After I adjusted the system time, the following error occurs. Now you only need to delete the debug keystore, and the system will generate a private key valid for one year for you.

[19:47:03-helloworld] Error generating final archive: Debug certificate expired on 10-6-18 pm!

When you release, you can right-click the project-> Android tools-> export signed Android package to generate a signed package. In this process, if you do not have your own private key, ADT will automatically call keytool to generate it for you. Please protect your private key; otherwise, your signature program will be attacked.

Pay attention to the version number before release, in manifest. XML contains two fields: Android: versioncode = "1" and Android: versionname = "1.0". The former is used by a program or Android and increases by 1. The latter is for the user to see, here you can use the main version number build lamp string.

 

See: http://developer.android.com/guide/publishing/app-signing.html

 

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.