在Android项目ant.properties文件丢失 [英] ant.properties file missing in android project
本文介绍了在Android项目ant.properties文件丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我建立Android应用程序的命令line.I需要为了在设备上安装内置的.apk文件让我签字的应用程序。为此,我需要写key.store和key.alias在ant.properties文件。但ant.properties文件missing.So的人都知道请不要让我知道。
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.
推荐答案
运行 Android的更新项目-p。
或
创建 ant.properties
,其内容如下手动档
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=######
这篇关于在Android项目ant.properties文件丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文