问题描述
我现在正致力于Ionic项目,我希望 zipalign
android-release-unsigned.apk
文件。我跟着。
I'm working on Ionic project now whereby I want to zipalign
the android-release-unsigned.apk
file. I followed this guide by Ionic.
当我运行 zipalign -v 4 /Users/zulhilmizainudin/Desktop/kl-parking/platforms/android/build/outputs/apk/android-release-unsigned.apk android-release.apk
命令,我得到 -bash:zipalign:命令未找到
错误。
When I run zipalign -v 4 /Users/zulhilmizainudin/Desktop/kl-parking/platforms/android/build/outputs/apk/android-release-unsigned.apk android-release.apk
command, I get -bash: zipalign: command not found
error.
这是其中zipalign位于我的系统中:
This is where zipalign sit in my system:
/Users/zulhilmizainudin/Library/Android/sdk/build-tools/21.1.2
我试图在其中复制zipalign并将其放入我的Ionic项目文件夹并再次运行zipalign命令。但仍然没有找到相同的命令。
I tried to copy zipalign inside it and put it inside my Ionic project folder and run the zipalign command again. But still get the same command not found.
我现在该怎么办?
推荐答案
解决了!
-
我从我的 zipalign 文件> Library / Android / sdk / build-tools / 21.1.2 进入我的Ionic项目文件夹
I copied zipalign file from my
Library/Android/sdk/build-tools/21.1.2
into my Ionic project folder
我添加<$ c $在这样的zipalign命令前面的c> ./ - ./ zipalign -v 4 / Users / zulhilmizainudin / Desktop / kl-parking / platforms / android / build / outputs /apk/android-release-unsigned.apk android-release.apk
完成。现在我在我的Ionic项目文件夹中得到 android-release.apk 。
Done. Now I get android-release.apk inside my Ionic project folder.
感谢迈克尔的解决方案!
Thanks to Michael for the solution!
这篇关于zipalign:找不到命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!