不使用Eclipse Android应用code签署在Windows [英] Android App Code Signing without Eclipse on Windows

查看:173
本文介绍了不使用Eclipse Android应用code签署在Windows的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我公司开发的应用程序的PhoneGap和创建APK,但我需要添加的签名密钥。

I have developed a phonegap app and created an APK but I need to add the signing key.

我读过,它与Eclipse这样做,但我不使用Eclipse创建的应用程序。

I've read that it's done with Eclipse but I don't use eclipse to create the apps.

有没有什么办法让签名密钥,而无需使用Eclipse?

Is there any way to get the signing key without having to use Eclipse?

请注意:我使用Windows 7操作系统

Note: I'm using windows 7 OS

推荐答案

如果你有你的项目源$ C ​​$ C,你可以建造它不使用Eclipse,签订一个无符号的apk可使用也达到了蚂蚁

If you have the source code of your project you can build it without Eclipse, signing an unsigned apk can be also achieved using ant

下面是关于如何建立APK签署不使用Eclipse的快速教程。

Here is a quick tutorial on how to build signed APK without Eclipse.

键入CMD以

cd your/project/folder/
android update project -p .

添加到project.properties以下设置:

Add to project.properties the following settings:

key.store=path/to/export/key
key.alias=alias_name
key.store.password=store_password
key.alias.password=alias_password

键入CMD以

cd your/project/folder/
ant relese

输出APK将在bin文件夹中找到

注意:,这需要安装Android SDK中

Note: that this requires android SDK installed.

如果您收到以下错误:

'android' is not recognized as an internal or external command
'ant' is not recognized as an internal or external command

您应该让您的Andr​​oid SDK /工具和Android的SDK /平台的工具添加到系统路径,这里是如何做到这一点的教程:

You should add your android-sdk/tools and android-sdk/platform-tools to system path, here is a tutorial on how to do it:

<一个href=\"http://geekswithblogs.net/renso/archive/2009/10/21/how-to-set-the-windows-path-in-windows-7.aspx\" rel=\"nofollow\">http://geekswithblogs.net/renso/archive/2009/10/21/how-to-set-the-windows-path-in-windows-7.aspx

这篇关于不使用Eclipse Android应用code签署在Windows的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆