无法找到密钥工具我的Mac上登录我的apk文件 [英] not able to locate keytool on my mac to sign my apk file

查看:194
本文介绍了无法找到密钥工具我的Mac上登录我的apk文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用的PhoneGap构建创建我的.apk文件和我想要签名。

I've used phonegap Build to create my .apk file and i'm trying to sign it.

我知道我可以用下面的命令做到这一点:

I understand that I can do this with the following command:

$ keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -validity 10000

但是,当我在终端运行这个得到找不到命令?

But when I run this in terminal I get 'command not found' ?

我在Mac所以从我读过我已经安装了所需的JDK(我有X $ C $三)我想这可能是路径未正确设置在keytool中运行,但我M无法找到此重置任何简单的信息。

I'm running this on a mac so from what I've read I have the required JDK installed ( I have xcode ) I guess it might be that the PATH is not set correctly to keytool, but I'm unable to find any simple info on resetting this.

任何帮助将是巨大的AP preciated。我必须失去了一些东西很简单,因为它不能被这个困难签署的应用程序?!?!

Any help would be hugely appreciated. I must be missing something very simple as it can not be this difficult to sign the app ?!?!

推荐答案

请确保您有 CD 倒是进入Android的SDK /平台的工具目录(其中密钥工具将[最有可能]居住)。如果你不是在包含密钥工具目录的命令将不会被发现。

Make sure you have cd'd into the android-sdk/platform-tools directory (where the keytool will [most likely] reside). The command won't be found if you aren't in the keytool-containing directory.

这篇关于无法找到密钥工具我的Mac上登录我的apk文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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