当前位置 : 主页 > 手机开发 > android >

android项目中缺少ant.properties文件

来源:互联网 收集:自由互联 发布时间:2021-06-11
我正在从命令行构建 android应用程序.我需要签署我的应用程序,以便在设备上安装内置的.apk文件.为此,我需要在ant.properties文件中编写key.store和key.alias.但是ant.properties文件丢失了.所以有人
我正在从命令行构建 android应用程序.我需要签署我的应用程序,以便在设备上安装内置的.apk文件.为此,我需要在ant.properties文件中编写key.store和key.alias.但是ant.properties文件丢失了.所以有人知道请告诉我. 运行android update project -p.

要么

使用以下内容手动创建ant.properties文件

# 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=######
网友评论