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

来源:互联网 发布:linux jdk1.6 rpm下载 编辑:程序博客网 时间:2024/06/06 10:56

今天研究了下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 all Android versions.

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

原创粉丝点击