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