1、命令行定位到工程所在的目录。
2、android list target列出所支持的target的列表
3、新建一个ant.properties文件。写入keystore的相关信息。
key.alias=my.keystore
key.store.password=xxxxxxxxxxxxxxxxxxxxxxxx
key.store=myi.keystore
key.alias.password=xxxxxxxxxxxxxxxxxxxxxxxx
5、update当前工程。
android update project --name MyApp --target 5 --path .
6、ant release
7、在bin目录下就生成了release.apk