Android Ant Batch Pack Learning (ii)---Generate a signed and confusing APK package

Source: Internet
Author: User

Objective of this article:

generate a signed apk file

The detailed steps are as follows:

1 definition files Two files

1.1 name:local.properties

Content: Path to the SDK (ex: SDK.DIR=/USERS/LINCOLN/ANDROID/SDK)

1.2 Name: Ant.properties

Content:

source.dir=src

out.dir=bin


Proguard.config=proguard.cfg (add confusion, you must ensure that the Proguard.cfg file exists)

key.store=china.keystore (Signature storage path)

key.alias= China(alias alias, manually package the second time you enter the password will show aliases)

key.store.password=china12345 (password)

key.alias.password=china12345 (password)


2 Introducing two files into the Build.xml file

Add the following content:

<property file="local.properties" />

<property file="ant.properties" />


3 View Results:

Execute the command ant release, which will generate a signed APK package in the project's Bin directory.

This article is from the Heart to Bodhi blog, so be sure to keep this source http://zhongkun.blog.51cto.com/1057583/1539499

Related Article

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.