【发布时间】:2012-01-26 04:52:34
【问题描述】:
我正在使用 ant-release 对我的 Android 应用进行 1 步构建。
我的 build.properties 如下所示:
application.package=xxxxx
key.store=sonr
key.alias=sonr labs
key.store.password=xxxx
key.alias.password=xxxx
当我运行 ant-release 时,一切都很好,除了应用程序签名。我得到了错误:
-release-prompt-for-password:
-release-nosign:
[echo] No key.store and key.alias properties found in build.properties.
[echo] Please sign /Users/syalam/Documents/git/joeborn-sonr/sonr/bin/SONR-release-unsigned.apk manually
[echo] and run zipalign from the Android SDK tools.
[propertyfile] Updating property file: /Users/syalam/Documents/git/joeborn-sonr/sonr/bin/build.prop
[propertyfile] Updating property file: /Users/syalam/Documents/git/joeborn-sonr/sonr/bin/build.prop
[propertyfile] Updating property file: /Users/syalam/Documents/git/joeborn-sonr/sonr/bin/build.prop
[propertyfile] Updating property file: /Users/syalam/Documents/git/joeborn-sonr/sonr/bin/build.prop
我该如何解决这个问题?
PS。我按照本教程来降低我的构建过程http://www.androidengineer.com/2010/06/using-ant-to-automate-building-android.html
【问题讨论】:
-
你在 Mac 上看起来像。您之前是否成功使用过
ant-release和该密钥库?您是否移动了任何文件...可能是权限问题? -
是的,我使用的是 Mac。这是我第一次尝试 ant-release。我可以使用 Eclipse GUI 很好地导出。
标签: java android ant build-process