ant.properties file missing in android project

六月ゝ 毕业季﹏ 提交于 2019-12-07 12:55:24

问题


I am building android application from command line.I need to sign my application in order to install built .apk file on device. For that i need to write key.store and key.alias in ant.properties file. But ant.properties file is missing.So anyone knows please do let me know.


回答1:


Run android update project -p .

or

Create ant.properties file manually with the following contents

# This file is used to override default values used by the Ant build system.
#
# This file must be checked in Version Control Systems, as it is
# integral to the build system of your project.

# This file is only used by the Ant script.

# You can use this to override default values such as
#  '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.

android.library.reference.1=###link to any external libraries####

key.alias=android_key
key.store.password==#########
config.logging=false
key.store=#########path to keystore##########
key.alias.password=######


来源:https://stackoverflow.com/questions/18051917/ant-properties-file-missing-in-android-project

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!