Zipalign - 找不到命令 - MAC 终端 [英] Zipalign - Command not found - MAC terminal

查看:27
本文介绍了Zipalign - 找不到命令 - MAC 终端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在 apk 上运行 Zipalign 时,出现错误 "Command not found"

When I try to run Zipalign on an apk I get the error "Command not found"

我不太熟悉在 MAC 上使用终端命令,但我已经导航到 SDK/Tools 文件夹并运行以下命令:

I am not that familiar with using terminal commands on the MAC but I have navigated to the SDK/Tools folder and run the following command:

zipalign -v 4 Project1.apk Project1-aligned.apk

我找不到命令

我尝试将 apk 放在 Tools 文件夹中,结果相同.

I have tried placing the apks in the Tools folder and same result.

有人可以帮助我了解 apk 的位置以及我应该从哪里运行 zipalign 吗?

Can someone help me to understand where the apks should be located and where I should run zipalign from?

谢谢,我对此感到非常沮丧,因为它看起来很简单.

Thanks, I am very frustrated about this as it seems so simple.

推荐答案

也许当前目录不在你的路径中?

Perhaps the current directory is not in your path?

尝试在命令前添加./"

Try adding "./" before your command so

./zipalign -v 4 Project1.apk Project1-aligned.apk

这篇关于Zipalign - 找不到命令 - MAC 终端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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