我正在使用ant-release
对我的Android应用进行一步骤构建。
我的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的构建过程
最佳答案
我也是最近才遇到这个问题,我认为该教程已过时...key.alias
等指令必须位于名为 ant.properties 的文件中。不再有任何名为build.properties的文件。