ANT学习、keystore制作,APK签名(二)

今天研究了下build.xml,简单总结下。
收获:
1、修改build.properties文件,例如:
# 'source.dir' for the location of your java source folder and
# 'out.dir' for the location of your output folder.


# You can also use it define how the release builds are signed by declaring
# the following properties:
# 'key.store' for the location of your keystore and
# 'key.alias' for the name of the key to use.
# The password will be asked during the build when you use the 'release' target.


#sdk路径,签名路径,密码等
key.store=F:/android123.keystore
key.alias=android123
key.store.password=850310
key.alias.password=850310

然后运行命令:ant release

直接生成签名的安装包。

2、发现一个奇怪问题
用keytool制作keystore,然后配置上面说到的文件,发现总是报错:找不到证书链。然而用signjar签名去签名,貌似又没问题,不知道为什么。
用eclipse制作的key,然后配置上面说到的文件,又没问题。

注意一点:keytool制作的key文件都有后缀(.keystore);eclipse制作的key文件没有

意外收获:[setup] WARNING: No minSdkVersion value set. Application will install on allAndroid versions.

为什么我的jdk1.6 安装完之后不用配置环境变量就可以在dos下运行java命
----用jdk的安装向导安装的时候 ,会自动把java.exe等几个文件复制到windows目录下,windows目录本来就是在path里的

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值