Zipalign - 找不到命令 - MAC终端 [英] Zipalign - Command not found - MAC terminal
问题描述
当我尝试在APK我得到的错误运行Zipalign 命令未找到
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
我得到命令没有找到
I get Command not found
我曾尝试放置的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屋!