Cannot run program "/Applications/legutools.app/Contents/PlugIns/JRE/Contents/Home/jre/bin/zipalign"

如题,在使用腾讯乐固进行加固(MAC版本)的过程中,报如下错误:

Cannot run program "/Applications/legutools.app/Contents/PlugIns/JRE/Contents/Home/jre/bin/zipalign": error=86, Bad CPU type in executable

大概意思就是执行 zipalign 的时候报错了。。

下面是解决办法:
拷贝/Users/yourname/android-sdk-macosx/build-tools/28.0.2/zipalign到legu应用目录,替换掉 /Applications/legutools.app/Contents/PlugIns/JRE/Contents/Home/jre/bin/zipalign

也就是说腾讯乐固中的 zipalign 有问题或者是版本太旧了,我们用自己 SDK 里面较新的版本的就好了。

参考链接:

https://cloud.tencent.com/developer/ask/228799

https://cloud.tencent.com/developer/ask/228885

发布了138 篇原创文章 · 获赞 168 · 访问量 46万+

猜你喜欢

转载自blog.csdn.net/xinpengfei521/article/details/102984915